RPCArg::MatchesType

Check whether the request JSON type matches. Returns true if type matches, or object describing error(s) if not.

Synopsis

Declared in <rpc/util.h>

UniValue
MatchesType(UniValue const& request) const;

Return Value

An empty value if the type matches, or an object describing the errors.

Parameters

NameDescription
requestThe value passed for this argument.