{"uid":"cap_QrJ6v3Scishlt4GZ0dH-S","slug":"op-mainnet-transaction-lookup-ed0645ba","name":"OP Mainnet Transaction Lookup","description":"Human-readable summary of a OP Mainnet transaction: status, block and time, sender and recipient, ETH value, gas used and fee, method selector, and decoded ERC-20 transfers with token symbols and amounts.","url":"https://onchaincheck.dev/optimism/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","pattern":"^0x[0-9a-fA-F]{64}$","description":"Transaction hash on OP Mainnet"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"0x7Ca0b75E67E33c0014325B739A8d019C4FE445F0","fee":"0.0000051521641113","from":"0xdC45DB93c3fC37272f40812bBa9C4Bad91344b46","hash":"0x7fe4cdd3b21df2ea239247f074de5c417fca54f3a59200b0ebc25fd67850fc91","chain":"optimism","value":"0","status":"success","gasUsed":1030371,"timestamp":"2026-10-22T15:30:05.000Z","blockNumber":158542114,"nativeSymbol":"ETH","methodSelector":"0x4e309099","tokenTransfers":[{"to":"0x01F8cDFb1694eA8fE4ED6c38a0fD78d1188E03F4","raw":"1959750","from":"0x66753c4e3fC84f1eD0e3C267C927284E9d90C572","token":"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85","amount":"1.95975","symbol":"USDC"},{"to":"0x50A233C4a0Bb1d7124b0224880037d35767a501C","raw":"1959750","from":"0x01F8cDFb1694eA8fE4ED6c38a0fD78d1188E03F4","token":"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85","amount":"1.95975","symbol":"USDC"}],"contractCreated":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-PQ1ORDvyomzwV0-5J7gw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a human-readable summary of an OP Mainnet transaction including status, block, sender/recipient, ETH value, gas, method selector, and decoded ERC-20 token transfers.","exampleAgentPrompt":"Can you look up Optimism transaction 0x7fe4cdd3b21df2ea239247f074de5c417fca54f3a59200b0ebc25fd67850fc91 and tell me if it succeeded, who sent it, what tokens were transferred, and how much gas was paid?","exampleUseCases":[{"title":"Verify a DeFi swap on Optimism","prompt":"I just did a swap on Optimism — can you check transaction 0x7fe4cdd3b21df2ea239247f074de5c417fca54f3a59200b0ebc25fd67850fc91 and confirm it went through, what USDC amounts moved, and what the gas fee was?"},{"title":"Audit a payment sent via OP Mainnet","prompt":"Someone says they sent me a payment on Optimism with hash 0x7fe4cdd3b21df2ea239247f074de5c417fca54f3a59200b0ebc25fd67850fc91 — can you pull up the transaction details and tell me the sender, recipient, amount, and whether it succeeded?"},{"title":"Debug a failed Optimism transaction","prompt":"My transaction on OP Mainnet with hash 0x7fe4cdd3b21df2ea239247f074de5c417fca54f3a59200b0ebc25fd67850fc91 might have failed — can you check the status, which block it landed in, and how much gas was consumed?"}],"resultDescription":"A JSON object containing the transaction hash, chain identifier, success/failure status, block number, timestamp, from/to addresses, ETH value transferred, gas used, fee in ETH, method selector, native symbol, contract created (if any), and an array of decoded ERC-20 token transfers each with from/to addresses, token contract address, symbol, raw amount, and human-readable amount.","failureModes":["Invalid or malformed transaction hash (must be 0x-prefixed 64 hex chars) returns an error","Transaction hash not found on OP Mainnet returns not-found error","Network or RPC timeout results in a failure response","Transaction is pending and not yet indexed may return empty or partial data"],"whenToPreferThis":"Use this endpoint when you need a complete, human-readable breakdown of a specific OP Mainnet transaction — especially when decoded ERC-20 token transfer details (symbols, amounts, parties) are needed alongside gas and status information. Prefer this over raw RPC calls or block explorers when you need structured JSON output ready for agent consumption without manual ABI decoding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:39:36.205Z","isFirstParty":false,"canonicalSlug":"op-mainnet-transaction-lookup-ed0645ba"}