{"uid":"cap_0qIrPRcEoQcUWimpH_QV1","slug":"tx-decode-2ae71e96","name":"TX Decode","description":"Provide a Base transaction hash and get a structured summary: from/to, ETH value, status, gas used, block, method selector, and nonce — straight from Base RPC.","url":"https://402.com.tr/api/x402/tx-decode","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["hash"],"properties":{"hash":{"type":"string","description":"Transaction hash"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BLWwpELZXSJom7MSw8Hpe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a Base blockchain transaction hash into a structured summary including from/to addresses, ETH value, status, gas used, block number, method selector, and nonce.","exampleAgentPrompt":"Can you decode this Base transaction for me — 0x4a3b...f92e — and tell me who sent it, who received it, the ETH value, and whether it succeeded?","exampleUseCases":[{"title":"Verify a pending payment transfer","prompt":"I need to confirm that transaction 0xabc123...def456 on Base actually sent ETH to the right address and succeeded — can you decode it and show me the from, to, value, and status?"},{"title":"Debug a failed smart contract call","prompt":"Transaction 0x7f8e...3d21 on Base seems to have failed — can you decode it and tell me the method selector, gas used, status, and what block it landed in so I can figure out what went wrong?"},{"title":"Audit a DeFi interaction on Base","prompt":"I want to review what happened in Base transaction 0x9c1f...8b44 — specifically the method called, the nonce, the gas consumed, and the block number it was confirmed in."}],"resultDescription":"A structured JSON object containing the decoded transaction fields: sender address (from), recipient address (to), ETH value transferred, transaction status (success/failure), gas used, block number, method selector (first 4 bytes of calldata), and nonce.","failureModes":["Invalid or malformed transaction hash returns an error","Transaction hash not found on Base (wrong network or not yet indexed) returns null or 404","RPC timeout if Base node is slow or overloaded","Transactions with empty calldata will have no method selector"],"whenToPreferThis":"Choose this endpoint when you need a quick, structured breakdown of a Base transaction by hash — especially when you want machine-readable fields (from, to, value, status, gas, block, method selector, nonce) without writing custom RPC calls. It is more structured than a plain human-language explanation (use the AI Transaction Explainer sibling for that) and faster to parse programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:11:14.021Z","isFirstParty":false}