Send an alert to a telegram channel every time a network deposit/withdrawal status change for the specified coin.
-
Download Rust
-
Create a new telegram bot using @Botfather to get a token and a chatId
-
You must set up these different environment variables:
export TELEGRAM_BOT_TOKEN=<Your token here> export TELEGRAM_CHAT_ID=<Your chat id here> export BINANCE_API_KEY=<Your token here> export BINANCE_SECRET_KEY=<Your token here>
-
Build and run the program:
cargo build --release ./target/debug/bn-wallet-status-alerter <COIN_TICKET>
./target/debug/bn-wallet-status-alerter AVAXUse of --debug or -d will disable telegram messages
To be sure the bot won't go offline after a reboot or an error, you can use the systemD service, the path to the binary MUST be absolute.
-
Install the service
sudo ./install_service.sh <ABSOLUTE_PATH_TO_BN-WALLET-STATUS-ALERTER-BINARY> <COIN_TICKET>
-
Set the env variables
TELEGRAM_BOT_TOKEN,TELEGRAM_CHAT_ID,BINANCE_API_KEYandBINANCE_SECRET_KEYto this file:/etc/binance-wallet-status-alerter/binance-wallet-status-alerter.conf -
Run and enable the service
sudo systemctl start binance-wallet-status-alerter.service sudo systemctl enable binance-wallet-status-alerter.service