ExecuteHTTPRPC

Execute a single HTTP request containing one or more JSONRPC requests. Specified jreq will be modified and status will be returned.

Synopsis

Declared in <httprpc.h>

UniValue
ExecuteHTTPRPC(
    UniValue const& valRequest,
    JSONRPCRequest& jreq,
    HTTPStatusCode& status);

Return Value

The JSON response, either a single result or a batch array.

Parameters

NameDescription
valRequestThe parsed JSON body, either a single request or a batch array.
jreqThe request context to execute against; modified in place.
statusSet to the HTTP status code that should be sent in the reply.