[#SignTransaction-06] = SignTransaction :mrdocs: Sign a transaction with the given keystore and previous transactions == Synopsis Declared in `<rpc/rawtransaction_util.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void 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); ---- == 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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#