[#wallet-DescriptorScriptPubKeyMan-SignTransaction] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::SignTransaction :relfileprefix: ../../ :mrdocs: Creates signatures for this spkm's inputs and adds them to the transaction. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool SignTransaction( xref:CMutableTransaction.adoc[CMutableTransaction]& tx, std::map<COutPoint, Coin> const& coins, int sighash, std::map<int, bilingual_str>& input_errors) const override; ---- == Return Value true if all inputs were signed. == Parameters [cols="1,4"] |=== | Name| Description | *tx* | The transaction to sign, updated in place. | *coins* | The previous outputs spent by the transaction's inputs. | *sighash* | The signature hash type to use. | *input_errors* | Filled with a per‐input error message for any input that could not be signed. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#