{"uid":"cap_BBPfNgXRJd9Xdp8EsDVci","slug":"x402-base-tools-transaction-decoder-dd71147f","name":"x402 Base Tools – Transaction Decoder","description":"Everything about a Base transaction in one call: status, time, from and to, ETH value, the function called (for common selectors), the fee split into L2 execution and L1 data in ETH and USD, every ERC-20 transfer with symbol and readable amount, NFT transfers, and x402 payments (USDC transferWithAuthorization) with the seller named from Bazaar.","url":"https://base.kagurazaka.dev/v1/tx?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":["hash"],"properties":{"hash":{"type":"string","description":"transaction hash (0x...)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"fee":{},"time":{},"method":{},"status":{},"x402_payments":{},"token_transfers":{}}}}}}},"responseSchema":{"type":"json","example":{"fee":{"total_eth":0.0000016,"total_usd":0.004},"time":"2026-10-24T22:18:59.000Z","method":{"name":"transferWithAuthorization(...)","selector":"0xe3ee160e"},"status":"success","x402_payments":[{"amount_usd":0.01}],"token_transfers":[{"amount":"0.01","symbol":"USDC"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ci__LzpdT_WV2k_m5eGwn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns comprehensive decoded details for a Base transaction: status, timestamps, addresses, ETH value, function name, fee breakdown (L2+L1 in ETH/USD), ERC-20 and NFT transfers, and x402 USDC payment details.","exampleAgentPrompt":"Can you decode this Base transaction for me — 0xe3ee160e... — and tell me the status, who sent and received value, how much the gas fee was in USD, and whether it included any USDC x402 payment?","exampleUseCases":[{"title":"Confirming an x402 payment receipt","prompt":"I just made an x402 USDC payment on Base and want to confirm it settled — can you look up transaction 0xabc123... and tell me the payment amount, the seller, and whether it was successful?"},{"title":"Auditing gas costs for a transaction","prompt":"Can you pull up Base transaction 0xdef456... and break down the gas fee into L2 execution and L1 data costs in both ETH and USD?"},{"title":"Inspecting ERC-20 transfers in a tx","prompt":"What ERC-20 tokens were transferred in Base transaction 0x789xyz...? I need the token symbols and readable amounts for each transfer."}],"resultDescription":"A JSON object containing: transaction status (success/failure), ISO timestamp, from and to addresses, ETH value transferred, decoded function name and selector (for common selectors), total fee split into L2 execution fee and L1 data fee in both ETH and USD, an array of ERC-20 transfers each with symbol and human-readable amount, NFT transfers, and an array of x402 USDC payments (transferWithAuthorization) with USD amount and seller name resolved from Bazaar.","failureModes":["Invalid or malformed transaction hash returns an error","Transaction hash not found on Base returns 404 or empty result","Function selector not in known list returns raw selector without decoded name","Seller name resolution may fail if seller is not registered in Bazaar","Network or RPC timeouts may cause slow or failed responses","Very recent transactions may not yet be indexed"],"whenToPreferThis":"Use this endpoint when you need a single comprehensive decoded view of a Base transaction — especially when you care about x402 payment context (USDC transferWithAuthorization with seller name), human-readable fee breakdown in USD, or decoded ERC-20/NFT transfers — rather than querying a raw block explorer or assembling multiple RPC calls yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:12.989Z","isFirstParty":false,"canonicalSlug":"x402-base-tools-transaction-decoder-dd71147f"}