RPCArg::RPCArg

Construct a composite argument (array or object) with inner arguments.

Synopsis

Declared in <rpc/util.h>

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

Parameters

NameDescription
nameThe argument name, or aliases separated by '|'.
typeThe expected JSON type (an array or object type).
fallbackDefault value or optionality of the argument.
descriptionHuman-readable description of the argument.
innerThe arguments nested inside this array or object.
optsAdditional options controlling validation and rendering.