[#wallet-DescriptorScriptPubKeyMan-FillPSBT] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::FillPSBT :relfileprefix: ../../ :mrdocs: Adds descriptor and derivation information to a PSBT and optionally signs it. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::optional<common::PSBTError> FillPSBT( xref:PartiallySignedTransaction.adoc[PartiallySignedTransaction]& psbt, xref:PrecomputedTransactionData.adoc[PrecomputedTransactionData] const& txdata, xref:common/PSBTFillOptions.adoc[common::PSBTFillOptions] const& options, int* n_signed = nullptr) const override; ---- == Return Value A PSBTError if filling failed, or nullopt on success. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#