Check that an object contains the expected keys with the expected value types.
Declared in <rpc/util.h>
void
RPCTypeCheckObj(
UniValue const& o,
std::map<std::string, UniValueType> const& typesExpected,
bool fAllowNull = false,
bool fStrict = false);
| Name | Description |
|---|---|
| o | The object to check. |
| typesExpected | Map of key names to their expected value types. |
| fAllowNull | If true, allow null values for the expected keys. |
| fStrict | If true, reject keys that are not in typesExpected. |