Parses verbosity from provided UniValue.

Synopsis

Declared in <rpc/util.h>

int
ParseVerbosity(
    UniValue const& arg,
    int default_verbosity,
    bool allow_bool);

Exceptions

Name

Thrown on

JSONRPCError

if allow_bool is false but arg provided is boolean

Return Value

An integer describing the verbosity level (e.g. 0, 1, 2, etc.)

Parameters

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

Created with MrDocs