Adds script and derivation path information to a PSBT, and optionally signs it.
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;
A PSBTError if filling failed, or nullopt on success.
| Name | Description |
|---|---|
| psbt | The partially signed transaction to fill, updated in place. |
| txdata | Precomputed transaction data used during signing. |
| options | Options controlling what is filled in and whether to sign. |
| n_signed | If not null, set to the number of inputs signed. |