{"uid":"cap_PEHiyRPqV7oD2EbwT_6aa","slug":"blockchain-transaction-decoder-api-dd4a0724","name":"Blockchain Transaction Decoder API","description":"Generate an AI_POLICY.md and a pull request template with an AI-disclosure section for your open-source repo. Free, runs in your browser.","url":"https://ai-policy-kit.moneymaker-ai.workers.dev/api/tx-decode?utm_source=zero.xyz","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"},"queryParams":{"type":"object","required":["tx"],"properties":{"tx":{"type":"string","description":"0x transaction hash"},"chain":{"enum":["base","ethereum","bsc","arbitrum","optimism","polygon","gnosis","celo"],"type":"string","description":"optional; omit to search all 8"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","tx":"0x71aa55e3a2cbfe57d1707997a21f13d7026e17e7f3536c24e86f14144fffc67d","fee":"0.000000270866308811","from":"0x9F8951CB8b060f52fdf87297b3c5B00f7aa18f52","note":"Events decoded from the receipt with a fixed ABI table (ERC-20/721/1155 transfers and approvals, WETH deposit/withdraw, ...","type":2,"block":52774331,"chain":"base","nonce":10,"value":"0","events":[{"to":"0x5b4Ca59741DE12DC212982b342392a063492a021","from":"0x9F8951CB8b060f52fdf87297b3c5B00f7aa18f52","event":"Transfer (ERC-20)","amount":"1","symbol":"USDC","contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","log_index":430,"amount_raw":"1000000"}],"method":{"args":["0x5b4Ca59741DE12DC212982b342392a063492a021","1000000"],"selector":"0xa9059cbb","signature":"transfer(address,uint256)"},"native":"ETH","revert":null,"status":"success","chainId":8453,"explorer":"https://basescan.org/tx/0x71aa55e3a2cbfe57d1707997a21f13d7026e17e7f3536c24e86f14144fffc67d","gas_used":"45059","gas_limit":"45439","event_count":1,"confirmations":157979,"decoded_count":1,"block_time_utc":"2026-10-18T15:40:09.000Z","fee_includes_l1":true,"contract_created":null,"sender_token_flows":[{"delta":"-1","token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","delta_raw":"-1000000"}],"effective_gas_price_gwei":0.006}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_F5t0dQV9Qn9V4aVByjFPp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes an on-chain transaction hash into human-readable details including events, token flows, method calls, and gas info across 8 EVM-compatible chains","exampleAgentPrompt":"Can you decode this Base transaction for me — 0x71aa55e3a2cbfe57d1707997a21f13d7026e17e7f3536c24e86f14144fffc67d — and tell me what tokens were transferred, who sent them, and whether the transaction succeeded?","exampleUseCases":[{"title":"Verify USDC payment receipt","prompt":"I need to confirm that this transaction actually sent 1 USDC to the right wallet — can you decode 0x71aa55e3a2cbfe57d1707997a21f13d7026e17e7f3536c24e86f14144fffc67d on Base and tell me the recipient, amount, and whether it succeeded?"},{"title":"Debug a failed smart contract call","prompt":"This Arbitrum transaction 0xabc123... seems to have reverted — can you decode it and tell me what method was called, what arguments were passed, and why it might have failed?"},{"title":"Audit token flows across chains","prompt":"I want to understand all the token movements in this Polygon transaction 0xdef456... — show me every ERC-20 transfer event, the sender and receiver addresses, and the total gas fees paid."}],"resultDescription":"Returns a JSON object with full transaction details including: from/to addresses, transaction type, block number and timestamp, chain ID, status (success/revert), gas used and limit, effective gas price, L1 fee inclusion flag, decoded method signature and arguments, all emitted events (ERC-20/721/1155 transfers, approvals, WETH wraps), per-token sender flow deltas, native currency, nonce, and a block explorer link.","failureModes":["Invalid or malformed transaction hash returns an error","Transaction not found on specified chain","If chain is omitted and tx exists on multiple chains, ambiguous result","Rate limit or payment failure (x402) if USDC micropayment not provided","Unsupported chain identifier returns validation error","Very recent transactions may not yet be indexed"],"whenToPreferThis":"Use this endpoint when you need to decode an EVM transaction hash into structured, human-readable data across Base, Ethereum, BSC, Arbitrum, Optimism, Polygon, Gnosis, or Celo. It is ideal for agents that need to verify payments, audit token transfers, debug contract calls, or extract event logs without running a full node. Prefer this over block explorer scraping or raw RPC calls when you need normalized output with decoded ABI events and token flow accounting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:40:31.230Z","isFirstParty":false,"canonicalSlug":"blockchain-transaction-decoder-api-dd4a0724"}