[#SignTransaction-07] = SignTransaction :mrdocs: `SignTransaction` overloads == Synopses Declared in `<rpc/rawtransaction_util.h>` Sign a transaction with the given keystore and previous transactions [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:SignTransaction-06.adoc[SignTransaction]( xref:CMutableTransaction.adoc[CMutableTransaction]& mtx, xref:SigningProvider.adoc[SigningProvider] const* keystore, std::map<COutPoint, Coin> const& coins, xref:UniValue.adoc[UniValue] const& hashType, xref:UniValue.adoc[UniValue]& result); ---- [.small]#xref:SignTransaction-06.adoc[_» more..._]# Sign the CMutableTransaction [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:SignTransaction-01.adoc[SignTransaction]( xref:CMutableTransaction.adoc[CMutableTransaction]& mtx, xref:SigningProvider.adoc[SigningProvider] const* provider, std::map<COutPoint, Coin> const& coins, xref:SignOptions.adoc[SignOptions] const& options, std::map<int, bilingual_str>& input_errors); ---- [.small]#xref:SignTransaction-01.adoc[_» more..._]# == Return Value True if every input was signed successfully. == Parameters [cols="1,4"] |=== | Name| Description | *mtx* | The transaction to‐be‐signed | *keystore* | Temporary keystore containing signing keys | *coins* | Map of unspent outputs | *hashType* | The signature hash type | *result* | JSON object where signed transaction results accumulate | *provider* | The source of keys and scripts used to sign. | *options* | Options controlling how each input is signed. | *input_errors* | Filled with per‐input signing errors, keyed by index. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#