{"uid":"cap_snH4eQ5qAXSbP1JweoCDl","slug":"on-chain-transaction-lookup-by-hash-4ac1b5ee","name":"On-Chain Transaction Lookup by Hash","description":"","url":"https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/onchain/tx","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["hash"],"properties":{"hash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$","description":"Transaction hash."},"chain":{"type":"string","default":"ethereum","description":"EVM chain (ethereum, base, arbitrum, optimism, polygon, bsc)."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["machine","route","tx"],"properties":{"tx":{"type":"object","properties":{"to":{"type":["string","null"]},"from":{"type":["string","null"]},"hash":{"type":["string","null"]},"chain":{"type":["string","null"]},"nonce":{"type":["integer","null"]},"value":{"type":["string","null"]},"status":{"type":["string","null"]},"gasUsed":{"type":["string","null"]},"success":{"type":["boolean","null"]},"gasLimit":{"type":["string","null"]},"valueWei":{"type":["string","null"]},"inputSize":{"type":["integer","null"]},"logsCount":{"type":["integer","null"]},"blockNumber":{"type":["integer","null"]},"contractCreated":{"type":["string","null"]},"transactionIndex":{"type":["integer","null"]},"effectiveGasPriceWei":{"type":["string","null"]}}},"hash":{"type":"string"},"chain":{"type":"string"},"route":{"type":"string"},"machine":{"type":"string"},"economics":{"type":"object","properties":{"sellPriceUsd":{"type":"number"},"upstreamCostUsdActual":{"type":["number","null"]}}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HqUuqoLF4g-i8tov-UaKp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a blockchain transaction by its hash and returns full details including sender, recipient, value, status, gas, and contract creation info.","exampleAgentPrompt":"Can you look up Ethereum transaction 0x4e3a3754410177e6937ef1f84bba68ea139e8d1b6b5f1c4a4e0a3e8e73d0e1a2 on Ethereum and tell me if it succeeded, who sent it, how much ETH was transferred, and how much gas was used?","exampleUseCases":[{"title":"Payment verification for e-commerce","prompt":"A customer says they paid me in ETH — the transaction hash is 0x4e3a3754410177e6937ef1f84bba68ea139e8d1b6b5f1c4a4e0a3e8e73d0e1a2 on Ethereum. Can you check if it actually went through, how much was sent, and who the sender was?"},{"title":"DeFi settlement monitoring","prompt":"Check transaction 0x9b2a4f8c1d3e5f7a0b6c8d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c6d8e0f2 on Arbitrum — did it succeed, what block was it in, and how many logs were emitted?"},{"title":"Smart contract deployment confirmation","prompt":"I just deployed a contract on Base. The tx hash is 0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2 — can you confirm the deployment succeeded and give me the address of the created contract?"}],"resultDescription":"Returns a structured object containing: transaction hash, chain, sender (from), recipient (to), value in ETH and wei, nonce, block number, transaction index, success flag, status string (success/reverted), gas used, gas limit, effective gas price in wei, input data size, number of logs emitted, and any contract address created by the transaction. Also includes routing metadata and cost economics.","failureModes":["Invalid transaction hash format (must be 0x-prefixed 64 hex chars) — validation error","Transaction hash not found on the specified chain — returns null fields or error","Unsupported chain name — defaults to Ethereum or returns error","Network/RPC unavailability for the requested chain — timeout or service error","Transaction still pending (not yet mined) — may return incomplete data"],"whenToPreferThis":"Use this endpoint when you need authoritative, structured on-chain transaction details from a single hash lookup across major EVM chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BSC). Prefer this over block explorer UIs when you need machine-readable data for payment verification, settlement confirmation, contract deployment checks, or gas auditing inside an automated agent workflow. It returns a richer normalized response (wei + ETH, success bool, log count, contract created) than raw RPC calls, and supports multi-chain with a single consistent API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:44:11.244Z","isFirstParty":false}