getnewaddress

If 'label' is specified, it is added to the address book so payments received with the address will be associated with 'label'.

Argument #1-label

Type: string, Optional
Default=""

Description: The label name for the address to be linked to. It can also be set to the empty string "" to represent the default label. The label does not need to exist, it will be created if there is no label by the given name.

Argument #2-address_type

Type: string, Optional
Default=set by -addresstype

Description: The address type to use. Options are "legacy", "p2sh-segwit", "bech32", and "bech32m".

Result

Type: string (hex)

Description: The new bitcoin address