JSON‐RPC 2.0 request, only used in bitcoin‐cli

Synopsis

Declared in <rpc/request.h>

UniValue
JSONRPCRequestObj(
    std::string const& strMethod,
    UniValue const& params,
    UniValue const& id);

Return Value

A JSON object representing the request.

Parameters

Name

Description

strMethod

The RPC method name.

params

The method parameters.

id

The request id echoed back in the reply.

Created with MrDocs