CRPCCommand::CRPCCommand

Construct a command from a plain RpcMethodFnType factory function pointer.

Synopsis

Declared in <rpc/server.h>

CRPCCommand(
    std::string category,
    RpcMethodFnType fn);

Parameters

NameDescription
categoryThe help category the command is grouped under.
fnFactory returning the method metadata and request handler.