Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 952 Bytes

dlt_rescan_blockchain.md

File metadata and controls

35 lines (28 loc) · 952 Bytes
title type
Rescan Blockchain
dlt

Rescan Blockchain

Rescans the entire blockchain and fills the activity file with information relevant to the loaded wallet.

Method: rescanblockchain

Input parameters:

Parameter Type Required Description
from Number No Start scanning from this blockheight upward. Default 0

Output:

  • success: notification that the rescan has been started
  • fail: JSON encoded details with a non-null error and a null result:

Errors:

Error Description
RPC_MISC_ERROR Activity scanner is already running.

Note: Current status of the blockchain rescan can be viewed from the /status?vv=true API output, specifically Blockchain Scanning Active and Activity Scanner Last Block

Example:

GET http://localhost:8081/rescanblockchain?from=1000000

{
	"result": "Started activity rescan.",
	"error": null,
	"id":null
}