Audit receive and change descriptors in a Bitcoin wallet

Before migrating a descriptor wallet, inspect which branches generate addresses and how far each ranged branch has progressed.

Request public metadata only

The example intentionally omits the descriptor strings from the printed inventory. The RPC argument false requests public descriptors. An extended public key would still reveal address relationships if logged.

bitcoin-cli -rpcwallet=shop listdescriptors false | jq '.descriptors[] | {active, internal, range, next_index}'

Compare branches before cutover

For each active ranged descriptor, compare the internal flag, range and next index with your expected configuration. An internal branch is used for change. Single-address descriptors can omit range metadata. An inventory assembled this way helps spot missing branches, but cannot restore keys or replace a wallet backup.

bitcoincore.org listdescriptors