RPCArg::RPCArg

Construct a scalar argument (not an array or object).

Synopsis

Declared in <rpc/util.h>

RPCArg(
    std::string name,
    Type type,
    Fallback fallback,
    std::string description,
    RPCArgOptions opts = {});

Parameters

NameDescription
nameThe argument name, or aliases separated by '|'.
typeThe expected JSON type.
fallbackDefault value or optionality of the argument.
descriptionHuman-readable description of the argument.
optsAdditional options controlling validation and rendering.