exportpubkeydb

Back to wallet

New since v30.2 Wallet

Summary

Exports wallet P2MR pubkeys as an explicit-pubkey JSON database that can be imported into a watch-only wallet.

Description

Exports wallet P2MR pubkeys as an explicit-pubkey JSON database that can be imported into a watch-only wallet.

Change Buckets

  • New since v30.2

Arguments

None.

Results

  • value (OBJ): No description.
  • count (NUM): The number of exported pubkeys
  • pubkeys (ARR): No description.
    • value (OBJ): No description.
    • pubkey (STR_HEX): P2MR pubkey (hex, 32 bytes)
    • account (NUM, optional): P2MR account number when known
    • change (BOOL, optional): True if the pubkey came from a change/internal descriptor
    • index (NUM, optional): Descriptor index when known

Examples

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