With Notifications via Telegram
- To use use this script you may need to install additional packages:
apt-get install curl jq # Debian/Ubuntu
yum install curl jq # CentOS- 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".
- Make the file with your variables not readable for anyone but owner
chmod 400 mysent.conf- Make the main script executable
chmod +x mysent.sh- 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.shThis 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 ;)