You can use this script to notify your Telegram Bot of missed attestations and produced/missed block proposals and beacon withdrawals for any validators of your choice. As a bonus it generates a screenshot of the produced blocks too.
- Install chaind and wait till it is fully sync'd: https://github.com/wealdtech/chaind. It will take few days, sit back and relax.
- Install node v14 or newer: https://nodejs.org/it/download/
- Create your Telegram Bot: https://telegram.me/BotFather
Just edit the config.json file:
- Update your PostegreSQL settings with your choosen user/pass/db for chaind.
- Update your Telegram Bot settings with your token and chatId (it uses an array so you can have multiple chatIds)
- Update the validators section with your validators. It uses labels so you can have different clusters of validator (notifications will show the labels)
First of all install the Node depenencies running:
npm install
Then execute it:
node ethNotifier.js