·multiversx-vault-pattern
</>

multiversx-vault-pattern

In-memory token ledger pattern for tracking intermediate balances during multi-step operations within a single transaction. Use when building any contract that processes sequential token operations — aggregators, batch processors, atomic swaps, or multi-step DeFi flows.

6Installs·0Trend·@multiversx

Installation

$npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-vault-pattern

How to Install multiversx-vault-pattern

Quickly install multiversx-vault-pattern AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-vault-pattern
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: multiversx/mx-ai-skills.

SKILL.md

View raw

When a contract executes multiple token operations in a single transaction (e.g., swap A→B, then B→C), you need to track intermediate balances without writing to storage. Storage writes are expensive and unnecessary for temporary state that only lives within one call.

| Multi-step token operations in one tx | Yes | | Need to track balances across sequential operations | Yes | | Single deposit/withdraw | No — overkill | | State that must persist across transactions | No — use storage |

In-memory token ledger pattern for tracking intermediate balances during multi-step operations within a single transaction. Use when building any contract that processes sequential token operations — aggregators, batch processors, atomic swaps, or multi-step DeFi flows. Source: multiversx/mx-ai-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-vault-pattern
Category
</>Dev Tools
Verified
First Seen
2026-02-22
Updated
2026-03-10

Browse more skills from multiversx/mx-ai-skills

Quick answers

What is multiversx-vault-pattern?

In-memory token ledger pattern for tracking intermediate balances during multi-step operations within a single transaction. Use when building any contract that processes sequential token operations — aggregators, batch processors, atomic swaps, or multi-step DeFi flows. Source: multiversx/mx-ai-skills.

How do I install multiversx-vault-pattern?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-vault-pattern Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/multiversx/mx-ai-skills