Skip to content

ddim77/haqq_alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Haqq alarm script

Usage: Set the required values in the script

  • LOCAL_RPC = "localhost:26657" - RPC of your validator node
  • TRUSTED_API = "https://haqq.api.t.stavr.tech" - Reliable API service
  • VALOPER = "" - Your valoper address
  • ADDRESS = "" - Your key address
  • HEX_ADDRESS = "" - Your Hex Address (you can get this address in popular explorers)
  • CRITICAL_BLOCKS_GAP = 25 - The maximum number of blocks by how much it is permissible to lag behind
  • CRITICAL_PEERS_COUNT = 5 - Critical number of peers
  • UPTIME_WINDOW = 500 - Number of blocks for uptime calculation
  • TELEGRAM_TOKEN = "" - Your telegram token
  • TELEGRAM_CHAT_ID = "" - Chat id for receiving messages

Run one time:

python3 haqq_alarm.py

Run via crontab once every ten minutes (edit crontab with crontab -e):

1,11,21,31,41,51 * * * * python3 $HOME/haqq_alarm.py >> $HOME/haqq_alarm.log 2>&1

About

Haqq alarm script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages