{"uid":"cap_HWMSQjcMB3OucB0t__Mxx","slug":"onchainexpat-x402-transaction-decoder-96178dc7","name":"OnchainExpat x402 Transaction Decoder","description":"Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol","url":"https://x402.onchainexpat.com/api/x402-crypto/transaction-decoder","method":"POST","headers":{},"bodySchema":{"type":"object","required":["tx_hash"],"properties":{"chain":{"type":"string","description":"Blockchain (default: ethereum)"},"tx_hash":{"type":"string","description":"Transaction hash (0x + 64 hex chars)"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"chain":{"type":"string"},"decoded":{"type":"object","description":"Decoded function call with method name and parameters"},"tx_hash":{"type":"string"},"transaction":{"type":"object","description":"Basic transaction details: from, to, value, gas"},"explorer_url":{"type":"string","description":"Link to view transaction on block explorer"},"ai_explanation":{"type":"string","description":"Human-readable explanation of what the transaction did"},"token_transfers":{"type":"array","description":"List of token transfers in this transaction"}}},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SYZvDugcwczXyshQDOhC_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes and parses raw blockchain transaction data into human-readable structured information","exampleAgentPrompt":"Can you decode this raw blockchain transaction for me and tell me what it's doing — who sent it, who received it, the value transferred, and any contract function calls: 0x02f8748201...?","exampleUseCases":null,"resultDescription":"A structured JSON object containing decoded transaction fields such as sender, recipient, value, gas, nonce, input data interpretation, and any smart contract function selectors or parameters extracted from the raw transaction","failureModes":["Invalid or malformed transaction hex returns a 400 error","Unsupported chain or transaction format not recognized","Payment not received via x402 protocol results in 402 Payment Required","Empty or missing transaction input body","Transaction data too large or truncated causing partial decode failure"],"whenToPreferThis":"Use this endpoint when you have a raw or hex-encoded blockchain transaction and need to programmatically extract its human-readable fields — sender, receiver, value, contract calls — without running a full node. Ideal for agents building transaction explorers, DeFi audit tools, or any workflow that needs to interpret on-chain activity from raw data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:58:36.460Z","isFirstParty":false}