[#JSONRPCTransactionError]
= JSONRPCTransactionError
:mrdocs:

Build a JSON&hyphen;RPC error object for a transaction error&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:UniValue.adoc[UniValue]
JSONRPCTransactionError(
    xref:node/TransactionError.adoc[node::TransactionError] terr,
    std::string const& err&lowbar;string = &quot;&quot;);
----

== Return Value

A JSON&hyphen;RPC error object&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *terr*
| The transaction error to report&period;
| *err&lowbar;string*
| Optional additional error text&period;
|===


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