Execute an RPC request and return its JSON-RPC reply.
Declared in <rpc/server.h>
UniValue
JSONRPCExec(
JSONRPCRequest const& jreq,
bool catch_errors);
The JSON-RPC reply object.
| Name | Description |
|---|---|
| jreq | The parsed JSON-RPC request to execute. |
| catch_errors | Whether to catch exceptions and encode them as errors. |