RPCMethod::RPCMethod

Constructors

Synopses

Declared in <rpc/util.h>

Construct a method description without an implementation handler.

RPCMethod(
    std::string name,
    std::string description,
    std::vector<RPCArg> args,
    RPCResults results,
    RPCExamples examples);
» more...

Construct a method description with an implementation handler.

RPCMethod(
    std::string name,
    std::string description,
    std::vector<RPCArg> args,
    RPCResults results,
    RPCExamples examples,
    RPCMethodImpl fun);
» more...

Parameters

NameDescription
nameThe method name.
descriptionHuman-readable description of the method.
argsThe method's arguments.
resultsThe method's possible results.
examplesExample invocations for the help text.
funThe function implementing the method.