{"uid":"cap_7iWMajbh2UjbIQHfFdQCT","slug":"saylor-innovations-evm-transaction-details-optimism-67046348","name":"Saylor Innovations EVM Transaction Details (Optimism)","description":"Optimism transaction details - status, from/to, value, gas used, fee, event count and method selector","url":"https://saylorinnovations.com/api/evm/optimism/tx/:hash?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","pathParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["hash"],"properties":{"hash":{"type":"string","description":"0x transaction hash (path)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","hash","status"],"properties":{"to":{"type":["string","null"],"description":"End of the range"},"from":{"type":"string","description":"Start of the range"},"hash":{"type":"string","description":"Hash of the item"},"block":{"type":["number","null"],"description":"Block number the data was read at"},"chain":{"type":"string","description":"Blockchain the data is for"},"nonce":{"type":"integer","description":"Transaction count (nonce) of the account"},"status":{"type":"string","description":"Current status"},"fee_eth":{"type":["string","null"],"description":"Fee paid in the chain native token"},"gas_used":{"type":["number","null"],"description":"Gas consumed"},"log_count":{"type":["number","null"],"description":"Number of log"},"value_eth":{"type":"string","description":"Amount in the chain native token"},"method_selector":{"type":"string","description":"First four bytes of the call data, identifying the called function"},"contract_created":{"type":"null","description":"Address of the contract created by the transaction, if any"}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_WzS846x9JOD9Lznx-hzC7","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":"Fetches full on-chain transaction details for a given transaction hash on the Optimism network","exampleAgentPrompt":"Can you pull up the full on-chain details for Optimism transaction 0x4a7b3c2d1e9f8a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e9f8a6b5c4d3e2f1a0b — I need the sender, recipient, value transferred, gas used, and whether it succeeded.","exampleUseCases":[{"title":"Verify a cross-chain bridge transfer","prompt":"I just bridged some ETH from Ethereum to Optimism and got a transaction hash — can you check the Optimism tx 0x3f9a2b1c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f to confirm it landed successfully and show me what was transferred?"},{"title":"Debug a failed smart contract call","prompt":"My contract interaction on Optimism may have failed — look up transaction 0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1 and tell me the status, how much gas was consumed, and what input data was sent."},{"title":"Audit a payment received on Optimism","prompt":"A client says they paid me on Optimism — can you verify transaction 0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a and confirm the sender address, the amount, and which block it was included in?"}],"resultDescription":"Returns full transaction details for the specified Optimism transaction hash, including sender and recipient addresses, ETH value transferred, gas limit and gas used, transaction status (success/failure), block number and timestamp, input calldata, and event logs emitted during execution.","failureModes":["Transaction hash not found on Optimism — returns 404 or empty result if the hash doesn't exist on the network","Invalid hash format — malformed or non-hex hash strings may return a 400 error","Network connectivity issues — temporary failures reaching the Optimism RPC node","Pending transactions — very recent transactions not yet confirmed may return incomplete data","Wrong network — submitting an Ethereum or Base transaction hash will return no result since this endpoint is Optimism-specific"],"whenToPreferThis":"Use this endpoint when you specifically need full transaction details on the Optimism (OP Mainnet) Layer 2 network. It is purpose-built for Optimism and will not return results for transactions on Ethereum mainnet, Base, or BSC — use sibling endpoints for those chains. Prefer this over generic block explorer scraping when you need structured, machine-readable transaction data suitable for programmatic processing by an AI agent.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:38:27.949Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-evm-transaction-details-optimism-67046348"}