mirror of
https://github.com/thunderstorm99/addressWatcher.git
synced 2025-01-30 23:01:41 +00:00
.gitignore | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md |
addressWatcher
How to build
You can build this program using the following commandline
CGO_ENABLED=0 go build -ldflags '-s -w' -trimpath .
How to use
Fill all needed parameters and execute the binary
./addressWatcher \
-address YOUR_ADDRESS \
-apikey YOUR_APIKEY_FOR_chainz.cryptoid.info \
-coin SHORT_FOR_YOUR_COIN \
-chatid TELEGRAM_CHATID \
-token TELEGRAM_BOT_TOKEN \
-name NICKNAME_OF_ADDRESS
Prerequisits
- Check if your Blockchain is available at https://chainz.cryptoid.info/
- If so, take note of the short handle in the url for your coin (e.g.
btc
for bitcoin, as taken fromhttps://btc.cryptoid.info/btc/
) - You need to create a Telegram bot first by talking to
@botfather
in Telegram and following the instructions - Create a seperate group for you (,some others) and your bot in Telegram
- Invite
@RawDataBot
into your channel and read out the chatid (including the-
sign at the front) e.g.-123456
- Remove
@RawDataBot
from your channel - Request an API key from https://chainz.cryptoid.info/api.key.dws
- Start this program somewhere it can run forever, e.g. a server
Use cases
Monitoring a Masternode
This program can be used to track rewards for a masternode. If you put in the address of the masternode this program will alert you of any changes made to the wallet's amount
Monitoring a donation address
If you have an address where people can donate cryptocurrency to, you can leave this program running to be alerted of any incoming donations