getnextpubkeydbaddress

Back to wallet

New since v30.2 Wallet

Summary

Returns the next allocatable imported P2MR pubkey-pool address for a watch-only wallet.

Description

Returns the next allocatable imported P2MR pubkey-pool address for a watch-only wallet.

Change Buckets

  • New since v30.2

Arguments

  • internal (BOOL): Whether to allocate from the internal/change pool
  • account (NUM): Account number to allocate from

Results

  • value (OBJ): No description.
  • address (STR): The next imported P2MR address
  • pubkey (STR_HEX): P2MR pubkey backing the allocated address
  • internal (BOOL): Whether the address came from the internal/change pool
  • account (NUM): Account number for the allocated address
  • index (NUM): Imported pool index for the allocated address
  • remaining (NUM): Remaining allocatable entries in the same pool after this allocation

Examples

qbit-cli getnextpubkeydbaddress
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getnextpubkeydbaddress", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8352/
qbit-cli getnextpubkeydbaddress true
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getnextpubkeydbaddress", "params": [true]}' -H 'content-type: application/json' http://127.0.0.1:8352/