Bitcoin raw transaction decoder
btc-tx-toolkit.stackstats.workers.dev/tx/decode
Bitcoin raw transaction decoder: decode tx hex to txid/wtxid, version, locktime, size/vsize/weight, segwit, RBF (BIP125) signaling, inputs (outpoint, sequence, witness) and outputs (value, script type, address, dust flag). Read-only; never broadcast or stored.
POST
https://btc-tx-toolkit.stackstats.workers.dev/tx/decodeUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://btc-tx-toolkit.stackstats.workers.dev/tx/decode", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"hex":"0200000001...","network":"mainnet"}),
});
console.log(await res.json());Example input
{
"hex": "0200000001...",
"network": "mainnet"
}More from BTC Tx Toolkit
- btc-tx-toolkit.stackstats.workers.dev/address/validateBitcoin address validator and BIP21 bitcoin: URI parser: validity, network (mainnet/testnet/regtest), type (p2pkh, p2sh, p2wpkh, p2wsh, p2tr), encoding (base58/bech32/bech32m), scriptPubKey, and BIP21 fields (amount, label, message, req- params).0.001
- btc-tx-toolkit.stackstats.workers.dev/psbt/analyzeBitcoin PSBT analyzer (BIP174/370, base64 or hex): total in/out, absolute fee and fee rate (sat/vB), high-fee sanity warnings, dust outputs, change detection (BIP32-derived outputs), RBF signaling, signed/finalized status. Read-only; nothing is broadcast or stored.0.005
