getnewaddress
Wallet
Summary
Returns a new qbit address for receiving payments.
Description
Returns a new qbit address for receiving payments. If 'label' is specified, it is added to the address book so payments received with the address will be associated with 'label'.
Arguments
label(STR): 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(STR): The address type to use. Options are "p2mr" on launch chains; unrestricted regtest also accepts "legacy", "p2sh-segwit", "bech32", "bech32m", "p2mr".
Results
address(STR): The new qbit address
Examples
qbit-cli getnewaddress
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getnewaddress", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8352/