[#SignTransaction-01]
= SignTransaction
:mrdocs:

Sign the CMutableTransaction

== Synopsis

Declared in `&lt;script&sol;sign&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
SignTransaction(
    xref:CMutableTransaction.adoc[CMutableTransaction]& mtx,
    xref:SigningProvider.adoc[SigningProvider] const* provider,
    std::map&lt;COutPoint, Coin&gt; const& coins,
    xref:SignOptions.adoc[SignOptions] const& options,
    std::map&lt;int, bilingual&lowbar;str&gt;& input&lowbar;errors);
----

== Return Value

True if every input was signed successfully&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mtx*
| The transaction to sign in place&period;
| *provider*
| The source of keys and scripts used to sign&period;
| *coins*
| The outputs spent by the transaction, keyed by outpoint&period;
| *options*
| Options controlling how each input is signed&period;
| *input&lowbar;errors*
| Filled with per&hyphen;input signing errors, keyed by index&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
