Skip to content

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 and display the "Age" from live block from the log every few seconds. This script is useful when trying to monitor or sync a BSC node.

Notifications You must be signed in to change notification settings

KyTiXo/BSC-Node-Block-Monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 

Repository files navigation

BSC Node Block Monitor

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.

You will need to get a free API key from BSCScan.com

Setup:

  • sudo apt install jq - requires JQ to be installed for parsing Json from BscScan API
  • sudo chmod +x watchBlocksLive
  • Add BSCSCANAPIKEY into script from https://bscscan.com/myapikey

Run:

  • ./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.

2021-05-04_14-28-18

  • You're in sync and ahead of the BSCScan.com - This is what you WANT to see.

image

About

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 and display the "Age" from live block from the log every few seconds. This script is useful when trying to monitor or sync a BSC node.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages