Parses verbosity from provided UniValue.
Declared in <rpc/util.h>
int
ParseVerbosity(
UniValue const& arg,
int default_verbosity,
bool allow_bool);
| Name | Thrown on |
|---|---|
JSONRPCError | if allow_bool is false but arg provided is boolean |
An integer describing the verbosity level (e.g. 0, 1, 2, etc.)
| Name | Description |
|---|---|
| arg [in] | The verbosity argument as an int (0, 1, 2,...) or bool if allow_bool is set to true |
| default_verbosity [in] | The value to return if verbosity argument is null |
| allow_bool [in] | If true, allows arg to be a bool and parses it |