{"uid":"cap_AGEcH3zN7asnGSaFLHw94","slug":"saylor-innovations-bitcoin-transaction-lookup-0f0433d3","name":"Saylor Innovations Bitcoin Transaction Lookup","description":"Bitcoin transaction details - confirmations, block, fee and fee rate, inputs and outputs","url":"https://saylorinnovations.com/api/btc/tx/:txid?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","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"pathParams":{"type":"object","required":["txid"],"properties":{"txid":{"type":"string","description":"transaction id, 64 hex chars (path)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["found"],"properties":{"txid":{"type":["string","null"]},"found":{"type":"boolean","description":"True when the lookup matched a record"},"source":{"type":["string","null"],"description":"Data source the values come from"},"weight":{"type":["number","null"]},"outputs":{"type":["array","null"]},"fee_sats":{"type":["number","null"],"description":"Fee sats"},"confirmed":{"type":"boolean"},"block_time":{"type":["string","null"],"description":"Block time (UTC unless a time zone is given)"},"size_bytes":{"type":["number","null"],"description":"Size, in bytes"},"input_count":{"type":["number","null"],"description":"Number of input"},"block_height":{"type":["number","null"],"description":"Block height"},"output_count":{"type":["number","null"],"description":"Number of output"},"fee_rate_sat_vb":{"type":["number","null"],"description":"Fee rate sat vb"},"total_output_btc":{"type":["number","null"],"description":"Total output btc"}}}}}}},"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_f1aAD9gPP2dJw-P6WQJdC","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 detailed Bitcoin transaction data including confirmations, block info, fee, fee rate, inputs, and outputs by transaction ID","exampleAgentPrompt":"Can you look up the Bitcoin transaction with txid 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b and tell me if it's confirmed, what block it landed in, and how much was paid in fees?","exampleUseCases":[{"title":"Verify incoming Bitcoin payment","prompt":"I just received a Bitcoin payment — can you check txid f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16 and confirm it's been included in a block and tell me how many confirmations it has?"},{"title":"Audit fee paid on a Bitcoin transfer","prompt":"What fee and fee rate in sat/vbyte did we pay for Bitcoin transaction 0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098?"},{"title":"Investigate Bitcoin transaction structure","prompt":"Can you break down the inputs and outputs for Bitcoin tx a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d — I want to know how many inputs and outputs it had and the total BTC moved?"}],"resultDescription":"Returns a JSON object with: found (boolean), confirmed (boolean), txid, block height, block time, transaction size in bytes, weight, fee in satoshis, fee rate in sat/vbyte, number of inputs, number of outputs, total output BTC, and the data source. Returns found=false if the txid does not match any known transaction.","failureModes":["Invalid txid format (not 64 hex characters) — likely returns error or found=false","Transaction not yet broadcast or not indexed — returns found=false","Unconfirmed mempool transaction — confirmed=false, block fields null","Network or upstream data source unavailable — server error response","Malformed txid (wrong length or non-hex characters) — request rejection"],"whenToPreferThis":"Use this endpoint when you need structured, fee-inclusive Bitcoin transaction details from a single txid lookup, especially when you need fee rate, block confirmation status, and input/output counts in one call. Prefer this over raw blockchain node RPC when you want a simple REST API with a flat JSON response. Suitable for payment verification, fee auditing, and on-chain analytics workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:47:43.032Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-bitcoin-transaction-lookup-0f0433d3"}