{"uid":"cap_9yO_ZbJov4MNO9wZf4hE7","slug":"bitcoin-transaction-decoder-bcdaa69b","name":"Bitcoin Transaction Decoder","description":"Decoded Bitcoin transaction by txid: inputs and outputs, fee, size, weight and virtual size, replace-by-fee flag, and confirmation status with a confirmation count. Informational, not advice.","url":"https://api.agentstools.dev/btc/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["txid"],"properties":{"txid":{"type":"string","description":"Bitcoin transaction id (64 hex characters)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_gi9JG8TibtI71WLSDx9at","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":"Decodes a Bitcoin transaction by txid, returning inputs, outputs, fee, size, weight, vsize, RBF flag, and confirmation status.","exampleAgentPrompt":"Can you decode Bitcoin transaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b for me — I want to see its inputs, outputs, fee, size, weight, and whether it's confirmed yet?","exampleUseCases":[{"title":"Verify payment confirmation status","prompt":"I sent a Bitcoin payment yesterday and the txid is 9f3b2c1d4e5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c — can you check how many confirmations it has and whether it's fully confirmed yet?"},{"title":"Check transaction fee and size","prompt":"Someone told me this Bitcoin transaction was overpaying in fees — the txid is b6f6ef7f5c6d3b2a1e9f8c7d4b3a2e1f0d9c8b7a6e5f4d3c2b1a0f9e8d7c6b5. Can you look it up and tell me the fee in satoshis and the vsize so I can figure out the fee rate?"},{"title":"Inspect RBF flag before accepting payment","prompt":"Before I ship this order I want to make sure the customer's Bitcoin transaction can't be replaced — the txid is 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b. Can you decode it and tell me if the replace-by-fee flag is set?"}],"resultDescription":"A structured object containing the transaction's inputs list, outputs list, fee in satoshis, raw byte size, weight units, virtual size (vsize), replace-by-fee (RBF) flag, and confirmation status with a count of confirmations.","failureModes":["Invalid or malformed txid (not 64 hex characters) returns a 400 error","Transaction not found on-chain or in mempool returns a 404 error","Network timeout or upstream Bitcoin node unavailability returns a 503 error","Payment not included or insufficient returns a 402 error"],"whenToPreferThis":"Use this endpoint when you need detailed decoded data about a specific Bitcoin transaction — including its inputs, outputs, fee, weight, vsize, and confirmation count — identified by its txid. Prefer it over block-level endpoints when you have a transaction hash and need transaction-specific fields like RBF status or fee.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:11:59.723Z","isFirstParty":false}