{"uid":"cap_XPg97mymNHe1gw0exatcZ","slug":"onchain-query-api-transaction-lookup-decode-f4386c59","name":"Onchain Query API – Transaction Lookup & Decode","description":"Transaction lookup and decode on any major EVM chain. Turns a raw tx hash into agent-readable facts: success or failure status, block number, sender and recipient, native value transferred, gas used, fee in native token and USD, and every ERC-20 transfer decoded with token symbol, decimals and human-readable amount. Returns found=false for an unknown hash instead of erroring.","url":"https://chain.cyberwarex.com/tx","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","pattern":"^0x[a-fA-F0-9]{64}$","description":"Transaction hash to look up."},"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string","default":"base","description":"EVM chain to query."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"to":{"type":["string","null"]},"fee":{"type":"object","description":"Transaction fee in native token and USD."},"from":{"type":"string"},"hash":{"type":"string"},"block":{"type":"integer"},"chain":{"type":"string"},"found":{"type":"boolean"},"status":{"enum":["success","failed"],"type":"string"},"gas_used":{"type":"integer"},"logs_count":{"type":"integer"},"value_native":{"type":"number"},"erc20_transfers":{"type":"array","items":{"type":"object"},"description":"Decoded ERC-20 transfers (symbol/value for the first 10)."}}}}}}},"responseSchema":null,"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_KOCUmJPYYedjW-fxV3Ec6","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":"Looks up and decodes an EVM transaction by hash, returning success/failure status, gas fees in native token and USD, and all ERC-20 transfers with human-readable amounts.","exampleAgentPrompt":"Can you look up transaction 0x3a1b2c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890ab on Ethereum and tell me whether it succeeded, who sent it, how much ETH was transferred, what ERC-20 tokens moved, and what the gas fee was in USD?","exampleUseCases":[{"title":"Verify a DeFi swap completed","prompt":"Check if this transaction succeeded on Base and show me which ERC-20 tokens were swapped and in what amounts: 0xabc123def456abc123def456abc123def456abc123def456abc123def456abc123de"},{"title":"Audit a payment sent to me","prompt":"I just received a payment — can you pull up transaction 0x9f8e7d6c5b4a3928374650192837465019283746501928374650192837465019ab on Ethereum and confirm the sender, the USDC amount transferred, and the exact gas fee paid in USD?"},{"title":"Debug a failed on-chain transaction","prompt":"This transaction on Arbitrum seems to have failed — hash is 0x111222333444555666777888999aaabbbcccdddeeefffaaa111222333444555666. Can you decode it and tell me the status, how much gas was used, and whether any ERC-20 transfers went through?"}],"resultDescription":"Returns a JSON object with found (boolean), chain, hash, block number, status (success/failed), from address, to address, value_native, gas_used, fee object (native token amount + USD equivalent), logs_count, and an erc20_transfers array of up to 10 decoded token transfers each including symbol, decimals, and human-readable amount. Returns found=false without error when the hash is unknown.","failureModes":["Unknown or unindexed transaction hash returns found=false instead of an error","Invalid hash format (not 0x + 64 hex chars) likely causes a validation error","Chain enum mismatch — specifying the wrong chain for a hash returns found=false","Rate limiting or payment failure (x402) returns 402 or relevant HTTP error","Network or RPC outage on the queried chain may cause a timeout or 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a fully decoded, agent-readable breakdown of a specific EVM transaction — including fee in USD and ERC-20 transfer semantics — across Base, Ethereum, Arbitrum, Optimism, or Polygon. Prefer it over raw RPC calls when you need human-readable amounts and USD fee conversion without writing your own ABI decoding logic. The graceful found=false response makes it safe to probe unconfirmed or unknown hashes without error handling overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:41:16.828Z","isFirstParty":false}