[#RPCErrorFromTransactionError]
= RPCErrorFromTransactionError
:mrdocs:

Map a transaction error to the matching RPC error code&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
RPCErrorCode
RPCErrorFromTransactionError(xref:node/TransactionError.adoc[node::TransactionError] terr);
----

== Return Value

The corresponding RPC error code&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *terr*
| The transaction error to map&period;
|===


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