JSONRPCExec

Execute an RPC request and return its JSON-RPC reply.

Synopsis

Declared in <rpc/server.h>

UniValue
JSONRPCExec(
    JSONRPCRequest const& jreq,
    bool catch_errors);

Return Value

The JSON-RPC reply object.

Parameters

NameDescription
jreqThe parsed JSON-RPC request to execute.
catch_errorsWhether to catch exceptions and encode them as errors.