{"uid":"cap_BUww1I8YrTqz9VaWA9oS-","slug":"op-mainnet-transaction-lookup-341e3915","name":"OP Mainnet Transaction Lookup","description":"Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.","url":"https://ca-tax-api-mainnet.lxtap.workers.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_PRkI-ld1odhPJUsh5tvig","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, time, sender, recipient, ETH value, gas, fee, method selector, and decoded ERC-20 transfers.","exampleAgentPrompt":"Can you look up OP Mainnet transaction 0x4a3b...c9f2 and give me a full summary — who sent it, who received it, the ETH value, gas fee, and any ERC-20 tokens that were transferred?","exampleUseCases":[{"title":"Verify a token transfer completed","prompt":"I just sent some USDC on Optimism — can you check transaction 0xabc123...def456 and confirm it went through, who the recipient was, and exactly how many USDC were transferred?"},{"title":"Audit gas costs for a trade","prompt":"Can you pull up OP Mainnet transaction 0x7f8e...1234 and tell me the gas used and the total fee I paid in ETH?"},{"title":"Decode an unfamiliar Optimism tx","prompt":"I see this transaction on my Optimism wallet — hash 0xd9c4...5678 — can you decode what method was called and list all the token transfers that happened in it?"}],"resultDescription":"A structured human-readable summary of the OP Mainnet transaction including: confirmation status, block number, block timestamp, from/to addresses, ETH value transferred, gas used and fee, the called method selector, and a decoded list of any ERC-20 token transfers with their symbols and amounts.","failureModes":["Invalid or malformed transaction hash (not matching 0x[64 hex chars] pattern) returns a validation error","Transaction hash not found on OP Mainnet returns a not-found error","Network or RPC availability issues may cause timeouts","Unrecognized token contracts may return raw addresses without symbols"],"whenToPreferThis":"Choose this endpoint when you need a complete, human-readable breakdown of a single OP Mainnet (Optimism) transaction by hash — especially when decoded ERC-20 transfer details, gas fees, and method selectors are needed in one call. Prefer this over raw RPC calls when you want parsed, ready-to-display output without manual decoding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:42:30.971Z","isFirstParty":false,"canonicalSlug":"op-mainnet-transaction-lookup-341e3915"}