bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/rescanblockchain
Wallet

rescanblockchain

Rescan the local blockchain for wallet related transactions. Can specify a start and stop height.

Parameters

start_heightnumberoptional
Block height where the rescan should start. Default: 0
stop_heightnumberoptional
Block height where the rescan should stop. Default: tip

Returns

objectObject with start_height and stop_height

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"rescanblockchain","params":[800000]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "start_height": 800000,
  "stop_height": 840000
}
← Previous
removeprunedfunds
Next →
restorewallet

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗