Get to know about Ethereum finality faster!
Lighthouse with HTTP endpoint enabled.
Clone the repo. Venv if you want. Then pip install httpx
.
- Fill in your Lighthouse HTTP endpoint in
LIGHTHOUSE_API_ENDPOINT
in the filemonitor-unrealized-checkpoints.py
. - Then
python monitor-unrealized-checkpoints.py
.
The script queries the consensus client every 6 seconds, and outputs in the terminal like this:
Explanation of output:
- The first 2 lines give information about current time, slot, slot in epoch, epoch etc.
- The next 2 lines provide information about realized (R) and unrealized (U) checkpoints. Unrealized checkpoints are expected to lead the realized ones by 1 epoch in the 22nd slot of every epoch.
- The next 3 JSON objects are:
- Current FFG checkpoints
- Lowest block that contains the unrealized justified checkpoint
- Lowest block that contains the unrealized finalized checkpoint
Enjoy!