Bitcoin PSBT Explained: Partially Signed Transactions for Developers
A Partially Signed Bitcoin Transaction (PSBT) is a data format for exchanging transaction information among tools that construct, inspect, and sign Bitcoin transactions. It is especially useful when signing keys are kept on separate devices or when multiple parties must contribute signatures.
Why use PSBT?
A transaction creator may know the destination, amount, selected inputs, and change output but should not hold the private signing keys. A PSBT can carry the unsigned transaction information and the input/output metadata needed by compatible signers. This reduces the need to expose private keys to the online transaction-building environment.
Typical PSBT workflow
- Construct a transaction proposal and identify the UTXOs to spend.
- Populate the PSBT with the necessary input and output information.
- Transfer it to one or more authorized signers for inspection and signing.
- Combine compatible partial signatures and finalize the transaction when possible.
- Extract the finalized transaction and broadcast it through a Bitcoin node.
These are conceptual stages; a particular wallet may combine some steps. The signer must independently verify destination addresses, amounts, change, fees, and relevant scripts. A PSBT is not automatically safe merely because it is structured.
What information can a PSBT contain?
Depending on version and script type, PSBT fields can carry UTXO information, redeem or witness scripts, key derivation details, partial signatures, and finalization data. Some fields are optional or conditional. Signers should validate the data rather than trusting every field supplied by a coordinator.
PSBT v0 and v2
BIP174 defines the original PSBT format. BIP370 specifies PSBT version 2 with a different organization of transaction fields. Support is not uniform across all wallets and devices; check compatibility before exchanging files. BIP371 defines Taproot-related PSBT fields.
Security and privacy boundaries
PSBTs are not encryption envelopes. They can disclose transaction details, UTXO relationships, derivation metadata, and intended recipients. A signed PSBT or extracted transaction may be broadcastable. Treat it as sensitive transaction data, use trusted transport, and verify it on the signing device.
Developer checklist
Check network and input outpoints; detect duplicate or conflicting fields; enforce supported PSBT versions; calculate fees from input and output values; validate the intended change output; and reject unexpected outputs. A successfully finalized transaction still requires network acceptance and confirmation tracking.
Primary references
- BIP174 — Partially Signed Bitcoin Transaction Format: https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki
- BIP370 — PSBT Version 2: https://github.com/bitcoin/bips/blob/master/bip-0370.mediawiki
- BIP371 — Taproot Fields for PSBT: https://github.com/bitcoin/bips/blob/master/bip-0371.mediawiki
