Bash script that compares local geth block number to BSCscan.com's API. If the local node is not a full node yet, it will monitor the log file + Geth to display data every few seconds. This script is useful when trying to monitor or sync a BSC node. Script also has some error handling built into it. See screenshots below.
sudo apt install jq
- requires JQ to be installed for parsing Json from BscScan APIsudo chmod +x watchBlocksLive
- Add
BSCSCANAPIKEY
into script from https://bscscan.com/myapikey
./watchBlocksLive
- If the node hasn't converted into a full node yet, it will monitor the log and Geth without clutter as shown below. If "NODE Local Block" shows 0 this means that you're still in syncing mode and havn't reached a full node yet.
- You're in sync and ahead of the BSCScan.com - This is what you WANT to see.