{"uid":"cap_fzGnITyQgzbRag6Gq7GtL","slug":"btc-tx-toolkit-transaction-decoder-e758f8d9","name":"BTC Tx Toolkit – Transaction Decoder","description":"Bitcoin transaction decoder, PSBT analyzer and address validator API. Pay-per-call in USDC via x402. Read-only: nothing is broadcast, logged or stored.","url":"https://btc-tx-toolkit.stackstats.workers.dev/tx/decode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"hex":{"type":"string","description":"Raw transaction hex"},"network":{"enum":["mainnet","testnet","regtest"],"type":"string","default":"mainnet"}}},"responseSchema":{"type":"json","example":{"txid":"e3b0...","vout":[{"n":0,"type":"p2wpkh","address":"bc1q...","value_sat":10000}],"vsize":141,"segwit":true,"rbf_signaled":true}},"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_c1P0Vk_9mpcTHL_qk7ctz","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":"Decodes a raw Bitcoin transaction hex string into structured fields including outputs, addresses, values, vsize, SegWit status, and RBF signaling","exampleAgentPrompt":"Can you decode this raw Bitcoin transaction hex for me and tell me the outputs, addresses, values in satoshis, vsize, and whether it signals RBF? Hex: 0200000001...abcd (mainnet).","exampleUseCases":[{"title":"Inspect transaction before broadcast","prompt":"I have a signed raw Bitcoin transaction hex and I want to verify the outputs, destination addresses, and amounts in satoshis before I broadcast it — can you decode it for me? Here's the hex: 02000000016b...ff00000000"},{"title":"Check RBF and SegWit flags on a tx","prompt":"Can you parse this raw Bitcoin transaction hex and tell me whether it signals Replace-By-Fee and whether it uses SegWit? Hex: 01000000000101..."},{"title":"Audit wallet transaction structure","prompt":"I pulled this raw hex from my testnet wallet and need to see all the output addresses, their types like p2wpkh, and how many satoshis each output receives — please decode it. Network is testnet. Hex: 0200000000010..."}],"resultDescription":"A JSON object containing the computed txid, an array of outputs (each with index, script type, Bitcoin address, and value in satoshis), the transaction's virtual size in vbytes, a boolean indicating SegWit usage, and a boolean indicating whether RBF is signaled. Nothing is broadcast or stored.","failureModes":["Invalid or malformed hex string returns a parsing error","Hex belonging to a different network than specified may produce incorrect address decoding","Truncated or incomplete transaction hex causes a decoding failure","Non-transaction hex (e.g. PSBT or block hex submitted to this endpoint) may return an error or unexpected result","Network enum value not in [mainnet, testnet, regtest] results in a validation error"],"whenToPreferThis":"Choose this endpoint when you need to inspect, audit, or analyze a raw Bitcoin transaction hex offline without broadcasting it. It is ideal for read-only analysis where privacy matters (nothing is logged or stored), and when you need structured output including output types, SegWit status, RBF signaling, and vsize. Prefer it over blockchain explorer APIs when you have the raw hex locally and don't want to leak it to a third-party explorer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:36:04.741Z","isFirstParty":false,"canonicalSlug":"btc-tx-toolkit-transaction-decoder-e758f8d9"}