rescanblockchain

Input(s) 2

The rescanblockchain RPC initiates a rescan of the local blockchain to identify transactions relevant to the wallet.

How is this used?

The rescanblockchain RPC is commonly used by wallets to synchronize their transaction history with the blockchain. When a wallet is offline or not in sync with the network for some time, it may miss new transactions or updates to existing transactions. By performing a rescan of the blockchain, the wallet can identify any relevant transactions that occurred during the offline period and update its transaction history accordingly. This ensures that the wallet's balance and transaction history are accurate and up to date. Additionally, rescanblockchain can be useful in scenarios where the wallet.dat file is moved to a new device or restored from a backup, allowing the wallet to reindex its transactions from a specific block height.

Request

method

rescanblockchain

start_height

Optional

stop_height

Optional

Inputs(2)

start_height block height where the rescan should start
stop_height block height where the rescan should stop

Result