How to get information about the state of the blockchain on a geth node?
There are mentions of admin.chainSyncStatus in the documentation, but it is undefined on my 1.4.0 node. The admin.nodeInfo shows a hash for the head block, but not the number.
This information is sort-of available in the log, but that is not an answer.
console.log("Syncing is " + await web3.eth.isSyncing());andawait web3.eth.getBlockNumber(). – lmat - Reinstate Monica Jan 09 '21 at 14:32