x402 Forge is part of Fizzlfizzl.eu ↗
x402 Forge Upgrade your toolBundlesCatalog

Catalog / psbt-decode

Bitcoin PSBT decoder: what does this PSBT spend and send

Shows what a Bitcoin PSBT spends and sends, the fee and fee rate, and flags anything to review before signing.

Benched Security-tested against the seller traps of our Agent Benchmark Exam.

Buy $1.00

What it does

Decodes a Bitcoin PSBT (BIP 174 v0 or BIP 370 v2, base64 or hex) offline before signing: each input's outpoint, amount and script (non-witness UTXO when its txid matches, else witness UTXO), script check, sighash, signatures and finals; each output's amount, type (P2PKH, P2SH, P2WPKH, P2WSH, P2TR, OP_RETURN data, others) and address; totals, fee and sat/vB fee rate (exact when final, else estimated with Bitcoin Core's dummy signature sizes). Change is only claimed by the PSBT's own derivation records (fingerprint also in an input's record); is_change needs the key in the script too; P2TR and P2SH/P2WSH without their script are not_checked and not change; nothing is derived from an xpub. Verdict ok or review with reason codes: txid mismatch, UTXO conflict or missing, segwit or P2SH amount without non-witness UTXO, script mismatch, duplicate input, bad amounts, negative fee, fee rate unknown, fee over your caps or Core's 0.1 BTC/kvB, fee above outputs, non-default sighash (sighash field, partial and taproot signatures; not signatures inside finals), OP_RETURN or nonstandard output, change key not in its script, undetermined v2 locktime, unknown or proprietary keys. Malformed PSBTs are valid: false with a reason. Signatures and keys are not verified. 20 inputs and outputs per call. Chains into btc-address-check (each address) and presign-guard (pre-sign policy).

Example input
{"psbt":"cHNidP8BAFICAAAAASd0Srq/MCf+DWzyOpbu4u+xiO9SMBlUWFiD5ptmJLJCAAAAAAD/////AUjmBSoBAAAAFgAUdo4e60z0IIZgM/gKzv8PlyB0SWkAAAAAAAEBKwDyBSoBAAAAIlEgWiws9bUs8x+DrS6Npj/wMYPs2PYJx1EK6KSOA5EKB1cBE0C7U+yRe62dkGrxuocYHEi4as5aritTYFpyXKdGJWMUdvxvW67a9PLuD0d/NvWPOXDVuCc7fkl7l68uPxJcl680IRb+NJBkyY1uKoU/o8mxK9izBKGcGVxg76fuI5MEbT+iMhkAdystp1YAAIABAACAAAAAgAEAAAAAAAAAARcg/jSQZMmNbiqFP6PJsSvYswShnBlcYO+n7iOTBG0/ojIAIgIDa3cqbbdNh1PJioJ5WN5seKszEhCfN9PgMESEJC7Oc9gYdystp1QAAIABAACAAAAAgAAAAAAAAAAAAA==","network":"mainnet"}
Answer
{"ok":true,"result":{"valid":true,"reason":null,"error_offset":null,"verdict":"ok","verdict_reasons":[],"findings":[],"psbt_version":0,"tx_version":2,"locktime":0,"locktime_type":"none","unsigned_txid":"9980589839773ea82b0622136d353a899db0133ae5524eba319eeaf7690dd39d","final_txid":null,"complete":false,"input_count":1,"output_count":1,"totals":{"input_sats":"5000000000","output_sats":"4999997000","fee_sats":"3000","weight":396,"vsize":99,"vsize_estimated":true,"fee_rate_sat_vb":30.3},"global":{"xpubs":0,"tx_modifiable":null,"fallback_locktime":null,"unknown_keys":0,"proprietary_keys":0},"unknown_keys_total":0,"proprietary_keys_total":0,"inputs":[{"index":0,"prev_txid":"42b224669be683585854193052ef88b1efe2ee963af26c0dfe2730bfba4a7427","prev_vout":0,"sequence":4294967295,"utxo_source":"witness_utxo","non_witness_utxo_txid_match":null,"utxo_conflict":false,"amount_sats":"5000000000","script_type":"p2tr","address":"bc1ptgkzead49ne3lqad96x6v0lsxxp7ek8kp8r4zzhg5j8q8yg2qatslufpwr","script_hex":"51205a2c2cf5b52cf31f83ad2e8da63ff03183ecd8f609c7510ae8a48e03910a0757","script_size":34,"redeem_script_type":null,"witness_script_type":null,"multisig":null,"script_check":"ok","sighash_type":null,"sighash_name":null,"non_default_sighash":false,"partial_sigs":0,"tap_key_sig":true,"tap_script_sigs":0,"final_scriptsig":false,"final_scriptwitness":false,"finalized":false,"size":"estimated","bip32_derivations":1,"bip32_fingerprints":["772b2da7"],"required_time_locktime":null,"required_height_locktime":null}],"outputs":[{"index":0,"amount_sats":"4999997000","script_type":"p2wpkh","address":"bc1qw68pa66v7ssgvcpnlq9valc0jus8gjtfv208as","script_hex":"0014768e1eeb4cf420866033f80aceff0f9720744969","script_size":22,"op_return_data_hex":null,"op_return_data_truncated":null,"change_claimed_by_psbt":true,"is_change":true,"change_check":"script_matches_key","bip32_derivations":1,"bip32_fingerprints":["772b2da7"]}],"inputs_start":0,"outputs_start":0,"inputs_truncated":false,"outputs_truncated":false,"change_rule":"change_claimed_by_psbt: an output derivation record (written by the PSBT's author) has a fingerprint found in an input record. is_change: also the key is in the script (else not_checked). Not derived from an xpub.","network":"mainnet","standard":"BIP 174 (PSBT v0), BIP 370 (PSBT v2), BIP 371 (taproot fields), BIP 141/144 (weight), BIP 173/350 (addresses)","input_format":"base64"},"warnings":["vsize is estimated with Bitcoin Core's dummy sizes: 72-byte ECDSA signatures, 33-byte keys (65 when listed), 64-byte Schnorr signatures (65 with a sighash type); sigops are not counted."]}
Try it free
/try/psbt-decode

Buy

Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.

  1. Pay with an x402 walletThe buy link is https://forge.fizzl.eu/forge/packages/psbt-decode?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/psbt-decode?format=zip”. From code:
    const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt
    const zip = await pay("https://forge.fizzl.eu/forge/packages/psbt-decode?format=zip");
  2. Start it with your walletUnzip, npm install, then PAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm start on any Node host.
  3. We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?

Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/psbt-decode/update with your receipt. No money back through this form.

Missing a tool?

Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.