Skip to content

eguoli/sentscripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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 ;)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages