{"uid":"cap_vcnLHUt4orX6ZiWQqmk2g","slug":"agent-data-tools-on-chain-transaction-lookup-4ecb3fdf","name":"Agent Data Tools: On-Chain Transaction Lookup","description":"Look up an Optimism transaction by hash: sender, recipient, value in ETH, nonce, gas limit, the 4-byte function selector and its block. Use to see what was sent or whether it exists; for success or failure and fees paid use op_receipt, for emitted events op_logs. Input is a 0x-prefixed 64-hex hash; an unknown hash returns 404, uncharged.","url":"https://agent-data-tools.revmesh2074.workers.dev/op/tx?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["hash"],"properties":{"hash":{"type":"string","description":"0x-prefixed transaction hash (64 hex characters)"}}},"responseSchema":{"type":"object","properties":{"to":{"type":"string"},"gas":{"type":"string"},"from":{"type":"string"},"hash":{"type":"string"},"block":{"type":"number"},"chain":{"type":"string"},"nonce":{"type":"number"},"value":{"type":"string"},"chainId":{"type":"number"},"selector":{"type":"string"},"inputBytes":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J8XIzwQhjUg9uLMBH1Ubu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a blockchain transaction by hash and returns decoded details including sender, recipient, value, gas, block, chain, and function selector.","exampleAgentPrompt":"Can you look up the transaction 0x721f3e9a996da49e2a8929bd2dd42e0f51344c11d7ca7bc3328fda349cdfae89 and tell me who sent it, who received it, what value was transferred, and which chain it was on?","exampleUseCases":[{"title":"Verify a payment transaction","prompt":"Someone told me they sent me a payment — the tx hash is 0xabc123... Can you look it up and confirm the sender, recipient, value, and which chain it's on?"},{"title":"Decode a smart contract call","prompt":"I have a transaction hash 0xdef456... on Optimism — can you fetch its details and tell me what function selector was called and how many input bytes it had?"},{"title":"Audit transaction block inclusion","prompt":"Can you check transaction 0x999aaa... and tell me which block it landed in and what the gas and nonce values were?"}],"resultDescription":"Returns a JSON object with the transaction's from and to addresses, hash, block number, chain name and chain ID, gas used, nonce, ETH value transferred, function selector (first 4 bytes of calldata), and total input bytes.","failureModes":["Invalid or malformed transaction hash returns an error","Transaction hash not found on any supported chain returns a not-found error","Network or RPC provider unavailability may cause timeouts","Hash for an unsupported chain returns no result"],"whenToPreferThis":"Use this endpoint when you need fast, cheap ($0.001) on-chain transaction lookups across Base, Ethereum, Arbitrum, Optimism, and Polygon without setting up an API key or account. Ideal for AI agents that need to verify transaction details programmatically and pay per call in USDC via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:21:47.046Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-on-chain-transaction-lookup-4ecb3fdf"}