Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.58 KB

File metadata and controls

58 lines (43 loc) · 1.58 KB

Autodelegate Bash Script For Sentinel (Tendermint) Validator Node

With Notifications via Telegram

  1. To use use this script you may need to install additional packages:
apt-get install curl jq # Debian/Ubuntu
yum install curl jq # CentOS
  1. Set the variables in mysent.conf:
GOBIN="" # Sentinel cli folder with full path, e.g. /root/go/bin
ADDR="" # Sentinel wallet address
OPER="" # Sentinel validator address
NODE="" # Sentinel node name
PASS="" # Sentinel wallet password
FEES="0.02" # Set the transaction fees amount in TSENT
CLAIM=100 # Minimum rewards amount to withdraw in TSENT
DELEGATE=1000 # Minimum amount to delegate in TSENT
SLEEP=10 # Wait for N seconds for the transaction to be confirmed so we get an updated balance

BOT="" # Telegram bot api from @BotFather
TGID="" # Your Telegram ID
  • To get the Telegram bot API key just talk to @BotFather and set up your own bot.
  • To define your Telegram ID send a message to your newly created bot and open in browser https://api.telegram.org/botINSERTAPIKEY/getUpdates - in the json string returned you will find your "id".
  1. Make the file with your variables not readable for anyone but owner
chmod 400 mysent.conf
  1. Make the main script executable
chmod +x mysent.sh
  1. Set up a cron job
crontab -u <user> -e
  • Set the full path to the script
# m h  dom mon dow   command
0 * * * *	/<path>/mysent.sh

This setting will run a script every hour at :00 minutes. Set as */10 instead to run this job every 10 minutes.


Please feel free to contact me @eguoli on Telegram ;)