importpubkeydb
New since v30.2 Wallet
Summary
Imports a JSON pubkey database into a watch-only wallet as P2MR descriptors.
Description
Imports a JSON pubkey database into a watch-only wallet as P2MR descriptors.
Change Buckets
- New since v30.2
Arguments
pubkeys(ARR, required): Array of pubkey recordsvalue(OBJ): No description.pubkey(STR_HEX, required): P2MR pubkey (hex, 32 bytes)account(NUM): P2MR account number when known (informational)change(BOOL): Whether this pubkey should be imported as a change/internal descriptorindex(NUM): Descriptor index when known (informational)
internal(BOOL): Fallback internal/change flag for entries that do not specify 'change' or 'internal'timestamp(NUM): Timestamp for imported descriptors in UNIX epoch time
Results
value(OBJ): No description.imported(NUM): Number of imported pubkeys
Examples
qbit-cli importpubkeydb '[{"pubkey":"001122..."}]'
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "importpubkeydb", "params": ['[{"pubkey":"001122..."}]']}' -H 'content-type: application/json' http://127.0.0.1:8352/