crypto_btc_tx_decode
Bitcoin raw transaction decoder — Decode a raw Bitcoin transaction offline before you sign, relay or trust it. tx= raw hex (signed or unsigned; legacy, segwit v0 or taproot); optional network= mainnet (default), testnet, signet or regtest. Returns txid and wtxid (double SHA-256), version, size, weight and vsize, locktime with its meaning (block height or date, and whether it is enforced), RBF signaling, every input (previous outpoint, sequence, BIP68 relative lock, detected spend type p2pkh/p2sh/p2wpkh/p2wsh/p2sh-p2wpkh/p2tr key or script path/coinbase with block height, signature kind and sighash, recovered address where the input reveals it, multisig/HTLC/timelock analysis of redeem and witness scripts) and every output (value in sats and BTC, script type, address incl. bech32m taproot and pay-to-anchor, OP_RETURN data as hex and text with runes/omni detection). Flags duplicate inputs, dust, burns, nonstandard scripts or versions and unusual sighash flags, with a verdict OK/REVIEW/INVALID. Fee needs input amounts, which a signed transaction does not carry: use /v1/crypto/psbt-decode for that. No network calls. Price: $0.003 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tx": "<tx>"
},
"name": "crypto_btc_tx_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | Yes | 0200000000010262e8b344de73a51894124b7ef3b15c1db18c5d0014334f435d108e81f51a325b0000000000ffffffff62e8b344de73a51894124b7ef3b15c1db18c5d0014334f435d108e81f51a325b0300000000ffffffff02905f010000000000160014e8df018c7e326cc253faac7e46cdc51e68542c4274bd000000000000225120d3a0d82bbfae272329e54e3b3410efc98646eaf06b7b6bf7cadceee05ba1447e0247304402204da33a0b41f0f905d0c5d4b5245e07d77d5ab5be4a4a5371dff665efca79cc600220331159cee208b457c791d59ca5e2243b7929be7511dffb6eed3598668c8625890121031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f01407898c414700affac8cf9f02db37beaacb83cc5bde914e4a1b53ec7b139b4c95e505bb223ad11a497cd2cc07a6ce8f427800089ef41a53c18f4fefad16209f86f00000000 |