[#JSONRPCExec]
= JSONRPCExec
:mrdocs:

Execute an RPC request and return its JSON&hyphen;RPC reply&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:UniValue.adoc[UniValue]
JSONRPCExec(
    xref:JSONRPCRequest.adoc[JSONRPCRequest] const& jreq,
    bool catch&lowbar;errors);
----

== Return Value

The JSON&hyphen;RPC reply object&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *jreq*
| The parsed JSON&hyphen;RPC request to execute&period;
| *catch&lowbar;errors*
| Whether to catch exceptions and encode them as errors&period;
|===


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