[#SignTransactionResultToJSON]
= SignTransactionResultToJSON
:mrdocs:

Encode the outcome of a signing attempt as a JSON object

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SignTransactionResultToJSON(
    xref:CMutableTransaction.adoc[CMutableTransaction]& mtx,
    bool complete,
    std::map&lt;COutPoint, Coin&gt; const& coins,
    std::map&lt;int, bilingual&lowbar;str&gt; const& input&lowbar;errors,
    xref:UniValue.adoc[UniValue]& result);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mtx*
| The transaction that was signed&period;
| *complete*
| Whether every input now has a complete signature&period;
| *coins*
| Map of outputs spent by the transaction&period;
| *input&lowbar;errors*
| Per&hyphen;input signing errors keyed by input index&period;
| *result*
| JSON object the signing results are written into&period;
|===


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