Returns an object with data about the sync status or false
web3.eth.isSyncing([callback])
A sync object when the node is currently syncing or false:
false
startingBlock - Number: The block number where the sync started.currentBlock - Number: The block number where the node is currently synced to.highestBlock - Number: The estimated block number to sync to.knownStates - Number: The number of estimated states to download.pulledStates - Number: The number of already downloaded states.
startingBlock - Number: The block number where the sync started.
startingBlock
Number
currentBlock - Number: The block number where the node is currently synced to.
currentBlock
highestBlock - Number: The estimated block number to sync to.
highestBlock
knownStates - Number: The number of estimated states to download.
knownStates
pulledStates - Number: The number of already downloaded states.
pulledStates
> web3.eth.isSyncing().then(console.log) > false
Last updated 3 years ago