What Is the Difference Between a PSBT and a Raw Bitcoin Transaction?
The difference between a PSBT and a raw Bitcoin transaction lies in their purpose. A raw transaction is the final format that nodes accept and record on-chain, containing only inputs, outputs and signatures. A PSBT is an intermediate format used before signing is complete, carrying the information signers need to verify and sign alongside the transaction itself. A PSBT cannot be broadcast directly; it must be fully signed and converted into a raw transaction first.
What Is Inside a Raw Bitcoin Transaction?
A raw transaction consists of a version number, inputs, outputs and a locktime. Each input only states which output of which previous transaction it spends, along with the signature that unlocks it; each output states an amount and a locking script. Nodes keep the full UTXO set and can look up how much each input spends and under what conditions it is locked, so the transaction doesn’t need to repeat that information.
Why Is a Raw Transaction Unsuitable for Handing to Someone Else to Sign?
Signers often don’t run a node. To an offline hardware wallet, an unsigned raw transaction is missing three things: the amount of each input, without which it can’t calculate the fee or sign SegWit inputs, because the signature commits to the input amount; the script needed to unlock it, such as a multisig witness script; and which key to sign with and which output is its own change.
PSBT attaches each of these alongside the transaction: the UTXO spent by each input, the redeem script or witness script, the keys’ HD derivation paths and any partial signatures already collected. Without going online, the signing device can calculate the fee, identify the change and complete the signature on its own. To stop the online side from faking amounts, many hardware wallets also require the PSBT to include the full previous transaction rather than just an amount.
Why Can’t a PSBT Be Broadcast Directly?
Nodes only accept the raw transaction format. A PSBT first goes through the finalize stage, where the collected signatures and scripts are assembled into the final unlocking data, and then the extract stage, where all the extra information is removed to produce a raw transaction. From then on it is no different from any other transaction, and nothing on-chain shows it was ever a PSBT.
As a result, a PSBT is usually much larger than the final transaction, but this doesn’t affect the fee, which is based only on the size of the final on-chain transaction. Unfinished PSBTs should be stored carefully: they contain no private keys, but they do reveal the wallet’s address and balance structure.
How Did People Coordinate Signing Before PSBT?
PSBT was proposed in BIP174 in 2017. Before that, each wallet and hardware device used its own proprietary format to pass unsigned transactions and supporting data. Creating a transaction in one vendor’s software and signing it on another vendor’s device was nearly impossible, and all participants in a multisig often had to use the same software.
Once PSBT standardized this data, mainstream wallets and hardware devices gradually adopted it, and cross-vendor collaboration became the norm. BIP370 later defined PSBT version 2, which allows inputs and outputs to be added during construction.
Conclusion
A raw transaction is the final result meant for nodes, while a PSBT is the working draft meant for signers, carrying everything needed to verify and sign before it turns back into a raw transaction for the chain. For businesses, this draft is also the best place to run policy checks before signing. Safeheron’s MPC Wallet-as-a-Service provides businesses with MPC key management and a policy engine.
Want the destination and amount of every Bitcoin transaction checked automatically before it is signed?
Looking for a secure way to manage digital assets?
Talk to our experts and find the right solution for your business.
Request a DemoLooking for a secure way to manage digital assets?
Talk to our experts and find the right solution for your business.