The JSON type expected for the argument.

Synopsis

Declared in <rpc/util.h>

enum class Type : int;

Members

Name

Description

OBJ

A JSON object.

ARR

A JSON array.

STR

A JSON string.

NUM

A JSON number.

BOOL

A JSON boolean.

OBJ_NAMED_PARAMS

Special type that behaves almost exactly like OBJ, defining an options object with a list of pre‐defined keys. The only difference between OBJ and OBJ_NAMED_PARAMS is that OBJ_NAMED_PARMS also allows the keys to be passed as top‐level named parameters, as a more convenient way to pass options to the RPC method without nesting them.

OBJ_USER_KEYS

Special type where the user must set the keys e.g. to define multiple addresses; as opposed to e.g. an options object where the keys are predefined

AMOUNT

Special type representing a floating point amount (can be either NUM or STR)

STR_HEX

Special type that is a STR with only hex chars

RANGE

Special type that is a NUM or [NUM,NUM]

Created with MrDocs