This is a simple daemon that monitors USDT transactions on the Bitcoin network and sends notifications to a Telegram bot.
- Monitors USDT transactions on the Bitcoin network
- Sends notifications to a Telegram bot
- Supports multiple addresses and custom thresholds
-
Clone the repository:
git clone https://github.com/jixiaod/usdt-monitor.git
-
Install dependencies:
go mod tidy
-
Build the binary:
go build -o usdt-monitor
-
Run the binary:
./usdt-monitor
Create a config.json
file with the following structure:
{
"botToken": "5995992793:AAHuHApwCNShyNTZsSudrJm1uGjhpWXXXX",
"chatID": -1002248200000,
"usdtAPIBaseURL": "https://apilist.tronscanapi.com",
"addresses": [
{"name": "Address 1", "address": "TScqqrtVweHUozbx6v9H1Y9gJjvuXXXXXX"},
{"name": "Address 2", "address": "TKzi5ymQUretLpBn5AeXyeQhdmoXXXXXXX"}
],
"threshold": 0.01
}