[#SignTransaction-06]
= SignTransaction
:mrdocs:

Sign a transaction with the given keystore and previous transactions

== Synopsis

Declared in `&lt;rpc&sol;rawtransaction&lowbar;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SignTransaction(
    xref:CMutableTransaction.adoc[CMutableTransaction]& mtx,
    xref:SigningProvider.adoc[SigningProvider] const* keystore,
    std::map&lt;COutPoint, Coin&gt; const& coins,
    xref:UniValue.adoc[UniValue] const& hashType,
    xref:UniValue.adoc[UniValue]& result);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mtx*
| The transaction to&hyphen;be&hyphen;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]#
