A single registered RPC command together with its dispatch metadata.

Synopsis

Declared in <rpc/server.h>

class CRPCCommand;

Type Aliases

Name

Description

Actor

RPC method handler reading request and assigning result. Should return true if request is fully handled, false if it should be passed on to subsequent handlers.

Member Functions

Name

Description

CRPCCommand [constructor]

Constructors

Data Members

Name

Description

actor

The handler callback that processes the request.

argNames

List of method arguments and whether they are named‐only. Incoming RPC requests contain a "params" field that can either be an array containing unnamed arguments or an object containing named arguments. The "argNames" vector is used in the latter case to transform the params object into an array. Each argument in "argNames" gets mapped to a unique position in the array, based on the order it is listed, unless the argument is a named‐only argument with argNames[x].second set to true. Named‐only arguments are combined into a JSON object that is appended after other arguments, see transformNamedArguments for details.

category

The help category the command is grouped under.

metadata_fn

Factory for the method metadata, if any.

name

The method name clients invoke.

unique_id

Identifier used to detect aliased commands.

Non-Member Functions

Name

Description

wallet::GetWalletRPCCommands

Returns the RPC commands provided by the wallet component.

Created with MrDocs