{"uid":"cap_SdKhZSpPA4LE7MGDyel-R","slug":"onchain-transaction-status-lookup-8b651fc7","name":"onchain Transaction Status Lookup","description":"Live Base and Ethereum reads for AI agents: balances (ETH + USDC), gas, transaction status, ERC-20 metadata. $0.001 per call via x402 (USDC on Base).","url":"https://onchain.x402utils.workers.dev/v1/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["hash"],"properties":{"hash":{"type":"string","description":"0x-prefixed 32-byte tx hash"},"chain":{"enum":["base","ethereum"],"type":"string","description":"base (default) or ethereum"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"0x…","from":"0x…","block":39000000,"status":"success","gas_used":21000,"value_eth":"0.0","confirmations":12}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Em13ie3CUOxhuALni58IR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches on-chain transaction details (status, gas used, confirmations, value, block) for a given tx hash on Base or Ethereum.","exampleAgentPrompt":"Can you check whether this Base transaction confirmed — hash is 0x4a3b2c1d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b — and tell me how many confirmations it has?","exampleUseCases":[{"title":"Verify cross-chain payment settlement","prompt":"I just sent USDC on Base with tx hash 0xabc123...def456 — can you confirm it went through and tell me how many confirmations it has?"},{"title":"Debug a failed smart contract call","prompt":"My Ethereum transaction 0xdeadbeef...cafe1234 might have failed — can you pull up the status, gas used, and block it landed in?"},{"title":"Confirm NFT transfer on Base","prompt":"Check if the Base transaction 0x111aaa...999zzz succeeded and show me the sender, receiver, and ETH value transferred."}],"resultDescription":"A JSON object with the transaction's status (success/failed/pending), sender and recipient addresses, block number, ETH value transferred, gas used, and number of confirmations.","failureModes":["Invalid or malformed tx hash returns an error","Transaction not found on the specified chain returns 404 or empty result","Network congestion may delay RPC response","Specifying the wrong chain for a hash returns not-found","Very recent transactions may show 0 confirmations or pending status"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call lookup of a specific transaction by hash on Base or Ethereum without standing up your own RPC node. Ideal for agents that need to verify payment settlement, debug failures, or check confirmation depth as a one-off read.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:31:47.228Z","isFirstParty":false,"canonicalSlug":"onchain-transaction-status-lookup-8b651fc7"}