[#wallet-CWallet-FillPSBT] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::FillPSBT :relfileprefix: ../../ :mrdocs: 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.) == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<common::PSBTError> FillPSBT( xref:PartiallySignedTransaction.adoc[PartiallySignedTransaction]& psbtx, xref:common/PSBTFillOptions.adoc[common::PSBTFillOptions] const& options, bool& complete, size_t* n_signed = nullptr) const; ---- == Return Value an error if something goes wrong == Parameters [cols="1,4"] |=== | 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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#