Psbt
Parameters
global psbt data containing the transaction to be signed.
signing data for each input of the transaction to be signed (order matches the unsigned tx).
signing data for each output of the transaction to be signed (order matches the unsigned tx).
Constructors
Implements the PSBT creator role; initializes a PSBT for the given unsigned transaction.
Types
Functions
Compute the fees paid by the PSBT. Note that if some inputs have not been updated yet, the fee cannot be computed.
Implements the PSBT extractor role: extracts a valid transaction from the psbt data.
Implements the PSBT finalizer role: finalizes a given non-segwit input. This will clear all fields from the input except the utxo, scriptSig and unknown entries.
Implements the PSBT finalizer role: finalizes a given segwit input. This will clear all fields from the input except the utxo, scriptSig, scriptWitness and unknown entries.
Implements the PSBT signer role: sign a given input. The caller needs to carefully verify that it wants to spend that input, and that the unsigned transaction matches what it expects.
Implements the PSBT updater role; adds information about a given non-segwit utxo.
Add details for a non-segwit output.
Implements the PSBT updater role; adds information about a given segwit utxo. When you have access to the complete input transaction, you should prefer [updateWitnessInputTx].
Implements the PSBT updater role; adds information about a given segwit utxo. Note that we always fill the nonWitnessUtxo (see https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#cite_note-7).
Add details for a segwit output.