Check whether the result 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& result) const;

Return Value

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

Parameters

Name

Description

result

The value to check against this result's type.

Created with MrDocs