{"uid":"cap_Jpf850dI8W91mrPDnsjIx","slug":"base-transaction-lookup-by-hash-cdb284ac","name":"Base Transaction Lookup by Hash","description":"🆕 A Base transaction by hash, unedited: from, to, value in wei and ETH, nonce, gas, fee caps, type, and the 4-byte method selector with the calldata size. Flags a contract creation (null to) and a still-pending transaction (null block) rather than leaving you to infer either. Unknown hashes answer found:false, not an error.","url":"https://402.com.tr/api/x402/base-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"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["hash"],"properties":{"hash":{"type":"string","description":"Transaction hash"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WJDELKCjD8BCxmM4f30ZY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches detailed on-chain data for a Base network transaction by its hash, including value, gas, fees, method selector, and explicit flags for contract creation and pending status.","exampleAgentPrompt":"Can you pull up the details for this Base transaction — 0x4a3b...f2e1 — and tell me the sender, receiver, ETH value, what method was called, and whether it's still pending?","exampleUseCases":[{"title":"Confirming a payment was sent","prompt":"I just sent a payment on Base — can you check transaction 0xabc123...def456 and confirm how much ETH was transferred, who it went to, and whether it's confirmed yet?"},{"title":"Identifying a smart contract call","prompt":"For Base tx hash 0x7f8e...c301, what function was called — show me the 4-byte selector and how big the calldata was, so I can figure out what the user was doing."},{"title":"Detecting contract deployment transactions","prompt":"Can you check if Base transaction 0x1d2c...8a9b was a contract deployment? I need to know if the 'to' field is null and flag it if it's a creation."}],"resultDescription":"Returns a JSON object containing: found (boolean), and if found: from, to (null for contract creation), value in wei and ETH, nonce, gas limit, maxFeePerGas, maxPriorityFeePerGas, transaction type, 4-byte method selector, calldata size in bytes, a contractCreation boolean flag, and a pending boolean flag (true if block is null). Unknown hashes return {found: false} rather than an error.","failureModes":["Unknown or invalid transaction hash returns {found: false} rather than an error — agent must check this flag","Missing hash query parameter causes a validation error","Transactions on networks other than Base are not found","Very recent transactions may show as pending (null block) before confirmation","Malformed hash strings may return found: false or a 400-level error"],"whenToPreferThis":"Use this endpoint when you need structured, machine-readable Base transaction data including explicit semantic flags (contract creation, pending status) rather than inferring them from null fields yourself. Prefer this over generic blockchain explorers when you need a clean JSON response with both wei and ETH values, the 4-byte selector, and calldata size in a single pay-per-call call. Especially useful for agents that need to route logic based on whether a tx is a deployment, a call, or a plain transfer, without parsing raw RPC responses.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:42:30.996Z","isFirstParty":false}