Creates and returns a new address that is added to the wallet, with an optional label for organizational purposes.
How is this used?
To safely receive funds by providing a fresh address, enhancing privacy and security for transactions.
Request
method
getnewaddress
label
Optional
address_type
Optional
Inputs(2)
label 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.
address_type The address type to use. Options are “legacy”, “p2sh-segwit”, and “bech32”.