Chalk Labs
Need help deploying mvx-debug-tx?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/multiversx-mvx-debug-tx
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/mvx-debug-tx
What's inside
- Skill name
mvx-debug-tx- Description
- Debug and analyze MultiversX transactions. Use when a transaction failed, returned unexpected results, or needs full decoding of inputs/outputs/events.
- License
- MIT
- Instructions
- 201 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# MultiversX Transaction Debugger
Analyze a transaction to determine what happened, why it failed (if applicable), decode all smart contract outputs, and explain every event. Combines on-chain decoding with local simulation techniques.
## Phase 1: Fetch Transaction Data
### 1.1 Get Full Transaction Results
Retrieve the complete transaction data from the MultiversX API.
**Manual approach**: Query the API directly:
```
GET https://gateway.multiversx.com/transaction/{txHash}?withResults=true
```
Or use the explorer: `https://explorer.multiversx.com/transactions/{txHash}`
For devnet/testnet, replace the base URL accordingly (`devnet-api.multiversx.com`, `testnet-api.multiversx.com`).
**MCP shortcut**: If a MultiversX MCP server is available (multiversx-sc-mcp or multiversx-mcp-server), use `mvx_tx_result` for this step.
Extract and record:
- **Status**: success, fail, or pending
- **Sender**: who initiated the transaction
- **Receiver**: the target address (contract or EOA)
- **Value**: EGLD amount sent (if any)
- **Data field**: the raw transaction data (function call + arguments)
- **Gas limit**: gas allocated
- **Gas used**: gas actually consumed
- **Gas refund**: gas returned to sender
- **Timestamp**: when the transaction was processed
- **Block / Nonce**: transaction ordering info
- **Miniblock hash**: for cross-shard tracking
### 1.2 Decode the Data Field
The transaction data field contains the function call. Parse it:
- First component (before `@`): function name (plain text ASCII)
- Subsequent `@`-separated components: arguments (hex-encoded)
For each argument, determine:
| Position | Hex Value | Decoded Value | Likely Type |
|----------|-----------|---------------|-------------|
| arg0 | ... | ... | Address / BigUint / TokenIdentifier / ... |
**Decoding tips**:
- Addresses: 64 hex chars, decode to bech32 `erd1...` format
- BigUint: variable-length hex, convert to decimal
- TokenIdentifier: hex-decode to ASCII string (e.g., `4d45582d343535633537` = `MEX-455c57`)
- Nested/complex types: refer to the contract ABI for struct layouts
**MCP shortcut**: If a MultiversX MCP server is available (multiversx-sc-mcp or multiversx-mcp-server), use `mvx_sc_decode` to decode complex argument types (structs, enums, nested types).
### 1.3 Identify Token Transfers
If the transaction includes ESDT transfers (ESDTTransfer, ESDTNFTTransfer, MultiESDTNFTTransfer):
- Decode the token identifier, nonce (for NFTs/SFTs), and amount
- Note: MultiESDTNFTTransfer has a different argument layout (destination first, then count, then token triplets)
## Phase 2: Analyze Results
### 2.1 Smart Contract Results (SCRs)
For each smart contract result in the transaction:
- **Direction**: which contract generated it, who receives it
- **Data**: decode the return data
- `@6f6b` = `@ok` (success)
- `@` followed by error code = failure
- Multiple `@`-separated values = multi-return
- **Value / Tokens**: any EGLD or ESDT transfers in the result
- **Gas**: gas forwarded and consumed
Build a call trace showing the execution flow:
```
1. Sender -> Contract A: functionName(args...)
1.1 Contract A -> Contract B: innerCall(args...)
Result: [decoded return value]
1.2 Contract A -> Sender: [token transfer / refund]
Result: [ok / error]
```
### 2.2 Decode Return Values
If the transaction succeeded and returned data:
- Use the contract ABI to match return types to the endpoint signature
- Decode multi-value returns by splitting on `@` separators
**MCP shortcut**: If a MultiversX MCP server is available (multiversx-sc-mcp or multiversx-mcp-server), use `mvx_sc_abi` on the receiver address to fetch the ABI, and `mvx_sc_decode` to decode return values.
### 2.3 Failure Analysis
If the transaction failed, identify the root cause.
**Common failure patterns**:
| Error Message | Meaning | Likely Cause |
|---------------|---------|--------------|
| `execution failed` | SC logic error | require/sc_panic triggered |
| `out of gas` | Insufficient gas | Complex operation or gas limit too low |
| `user error` | Input validation | Wrong arguments, wrong token, insufficient balance |
| `signal error` | SC explicitly signaled | Business logic rejection |
| `insufficient funds` | Not enough EGLD/tokens | Sender balance too low |
| `invalid arguments` | Wrong arg count/type | Mismatched function signature |
| `action is not allowed` | Access control | Caller is not owner/admin |
| `contract not found` | Target not deployed | Wrong address or not yet deployed |
| `too much gas` | Gas limit exceeds block limit | Reduce gas limit |
**Common error codes**:
- `10`: Execution Failed
- `6`: User Rejected
- `4`: Invalid Balance
For SC errors, decode the error message from the result data:
- Strip the `@` prefix and error code
- Hex-decode the message portion
- Match against known error strings in the contract
If the error is not immediately clear:From multiversx/mx-ai-skills, MIT.
More from multiversx/mx-ai-skills
- 0.544score
mvx-cross-contract-calls
multiversx
Make cross-contract calls in MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-deploy-flow
multiversx
Deploy MultiversX smart contracts with pre-flight checks, verification, and post-deployment validation.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-property-testing
multiversx
Use property-based testing and fuzzing to find edge cases in smart contract logic.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-payment-handling
multiversx
Handle payments in MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-project-architecture
multiversx
Production-grade project structure patterns for MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-audit-onchain
multiversx
Perform a comprehensive on-chain security audit of a deployed MultiversX smart contract.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-blockchain-data
multiversx
Read on-chain state in MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-cache-patterns
multiversx
Gas-optimized cache patterns for MultiversX smart contracts using Drop-based write-back caches.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-clarification-expert
multiversx
Identify ambiguous requirements and ask targeted clarifying questions for MultiversX development.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-test-contract
multiversx
Perform automated on-chain testing of a deployed MultiversX smart contract.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-constant-time
multiversx
Verify cryptographic operations execute in constant time to prevent timing attacks.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-cross-contract-storage
multiversx
Read another contract's storage directly without async calls using storage_mapper_from_address.
SkillCFreshness: C★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 4
- Open issues
- 0
- Last commit (this folder)
- Jul 2, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/multiversx/mx-ai-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from multiversx
- 0.544score
mvx-payment-handling
multiversx
Handle payments in MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-deploy-flow
multiversx
Deploy MultiversX smart contracts with pre-flight checks, verification, and post-deployment validation.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-property-testing
multiversx
Use property-based testing and fuzzing to find edge cases in smart contract logic.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-test-contract
multiversx
Perform automated on-chain testing of a deployed MultiversX smart contract.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-project-architecture
multiversx
Production-grade project structure patterns for MultiversX smart contracts.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
mvx-audit-onchain
multiversx
Perform a comprehensive on-chain security audit of a deployed MultiversX smart contract.
SkillCFreshness: C★ 12Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get mvx-debug-tx running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
mvx-debug-tx skill. Agent Mart. https://agentmart.dev/skills/multiversx-mvx-debug-tx (last updated 2026-10-24)