{"uid":"cap_iZJwRb2kz3mHpVjAftJFh","slug":"onchain-tx-explain-04255ae1","name":"onchain-tx-explain","description":"Plain-language explanation of an EVM transaction by hash across 12 networks: net token movements per participant (ERC-20, ERC-721, ERC-1155, native, WETH), the operation type (swap, transfer, approve, mint, deploy, wrap, and more), protocol labels, gas in native plus USD, and a readable summary.","url":"https://api.agentstools.dev/tx/explain","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["hash"],"properties":{"hash":{"type":"string","description":"Transaction hash (0x + 64 hex characters)"},"network":{"enum":["base","ethereum","arbitrum","optimism","polygon","bnb","avalanche","gnosis","linea","scroll","celo","mantle"],"type":"string","description":"EVM network to read from (default base)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","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.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ylzMhePKLdGrpbYxbai9W","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a plain-language explanation of an EVM transaction by hash, including net token movements per participant, operation type, protocol labels, gas costs in native and USD, and a readable summary — across 12 EVM networks.","exampleAgentPrompt":"Can you explain what happened in this Ethereum transaction — 0x4a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b — including what tokens moved, what kind of operation it was, and how much it cost in gas?","exampleUseCases":[{"title":"DeFi swap audit trail","prompt":"Explain what happened in this Base transaction 0x3f8a2b1c4e5d6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a — I want to know which tokens were swapped, who the participants were, and which protocol handled it."},{"title":"Gas cost breakdown for accounting","prompt":"How much did this Arbitrum transaction 0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b cost in gas, both in ETH and USD? I need it for expense reporting."},{"title":"NFT mint verification","prompt":"I need to confirm whether this Polygon transaction 0x9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d was an NFT mint and which token IDs were created — can you decode it in plain language?"}],"resultDescription":"A structured JSON response containing: the operation type (swap, transfer, approve, mint, deploy, wrap, etc.), net token movements per participant broken down by token standard (ERC-20, ERC-721, ERC-1155, native, WETH), protocol labels identifying the DeFi protocols involved, gas cost in both native token and USD, and a human-readable plain-language summary of the entire transaction.","failureModes":["Invalid or malformed transaction hash returns an error (must be 0x + 64 hex characters)","Transaction hash not found on the specified network returns a not-found error","Unsupported network name returns a validation error (must be one of the 12 supported EVM networks)","Very complex transactions with many log events may have incomplete token movement attribution","Pending or unconfirmed transactions may not be resolvable","USD gas price conversion may be slightly delayed relative to real-time spot price"],"whenToPreferThis":"Choose this endpoint when you need a human-readable, multi-dimensional breakdown of a specific EVM transaction — not just raw decoded calldata, but interpreted meaning including net token flows, operation classification, protocol identification, and USD gas costs. Prefer this over raw RPC calls when your agent or user needs to understand what a transaction actually did in plain English across 12 supported networks including Base, Ethereum, Arbitrum, Optimism, Polygon, BNB, and others.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:17.618Z","isFirstParty":false}