Fills out a PSBT with information from the wallet. Fills in UTXOs if we have them. Tries to sign if options.sign=true. Sets complete if the PSBT is now complete (i.e. has all required signatures or signature-parts, and is ready to finalize.)
Declared in <wallet/wallet.h>
std::optional<common::PSBTError>
FillPSBT(
PartiallySignedTransaction& psbtx,
common::PSBTFillOptions const& options,
bool& complete,
size_t* n_signed = nullptr) const;
an error if something goes wrong
| Name | Description |
|---|---|
| psbtx [in] | PartiallySignedTransaction to fill in |
| options [in] | options for filling or signing |
| complete [out] | indicates whether the PSBT is now complete |
| n_signed [out] | the number of inputs signed by this wallet |