Rescan a known Bitcoin wallet deposit window

If a wallet already knows the receiving script and an incident has known height bounds, limit the rescan to the relevant part of the local chain.

Bound the rescan by height

On a mainnet node retaining the blocks, the example asks wallet shop to revisit heights 850000 through 850100. Query progress from another terminal while the first call is running.

bitcoin-cli -rpcwallet=shop rescanblockchain 850000 850100

Check progress and scope

Use bitcoin-cli -rpcwallet=shop getwalletinfo and inspect scanning. After completion, record the start and stop heights returned by the rescan and query the wallet for the expected transaction. A successful scan can legitimately find nothing when the script is absent from the wallet or the payment was mined outside the selected interval.

bitcoincore.org rescanblockchain · bitcoincore.org getwalletinfo