Bitcoin Core
0.19.99
P2P Digital Currency
|
#include <wallet/psbtwallet.h>
Go to the source code of this file.
Functions | |
TransactionError | FillPSBT (const CWallet *pwallet, PartiallySignedTransaction &psbtx, bool &complete, int sighash_type, bool sign, bool bip32derivs) |
Fills out a PSBT with information from the wallet. More... | |
TransactionError FillPSBT | ( | const CWallet * | pwallet, |
PartiallySignedTransaction & | psbtx, | ||
bool & | complete, | ||
int | sighash_type = 1 , |
||
bool | sign = true , |
||
bool | bip32derivs = true |
||
) |
Fills out a PSBT with information from the wallet.
Fills in UTXOs if we have them. Tries to sign if sign=true. Sets complete
if the PSBT is now complete (i.e. has all required signatures or signature-parts, and is ready to finalize.) Sets error
and returns false if something goes wrong.
[in] | pwallet | pointer to a wallet |
[in] | psbtx | PartiallySignedTransaction to fill in |
[out] | complete | indicates whether the PSBT is now complete |
[in] | sighash_type | the sighash type to use when signing (if PSBT does not specify) |
[in] | sign | whether to sign or not |
[in] | bip32derivs | whether to fill in bip32 derivation information if available return error |
Definition at line 7 of file psbtwallet.cpp.