wallet::ScriptPubKeyMan::FillPSBT

Adds script and derivation path information to a PSBT, and optionally signs it.

Synopsis

Declared in <wallet/scriptpubkeyman.h>

virtual
std::optional<common::PSBTError>
FillPSBT(
    PartiallySignedTransaction& psbt,
    PrecomputedTransactionData const& txdata,
    common::PSBTFillOptions const& options,
    int* n_signed = nullptr) const;

Return Value

A PSBTError if filling failed, or nullopt on success.

Parameters

NameDescription
psbtThe partially signed transaction to fill, updated in place.
txdataPrecomputed transaction data used during signing.
optionsOptions controlling what is filled in and whether to sign.
n_signedIf not null, set to the number of inputs signed.