- This project is a Node.js-based Solana blockchain monitoring bot designed to detect and track large transfers of SOL and USDC tokens. It actively monitors specified Solana wallet addresses for significant outgoing or incoming transactions and automatically logs recipient addresses to a file named whales_address.txt. Simultaneously, the bot sends instant transaction notifications to a designated Telegram channel, enabling real-time alerts about substantial crypto movements.
- By integrating Solana’s Web3 APIs and using Telegram Bot APIs, this solution provides an efficient and automated way to monitor "whale" activities on the Solana blockchain, facilitating prompt responses and improved situational awareness for traders, analysts, or crypto enthusiasts.
- 🔍 Real-time Monitoring: Monitors specified Solana addresses for outgoing transfers
- 💰 USD Threshold Filtering: Only triggers on transfers above a configurable USD amount
- 🐋 Whale Detection: Automatically saves recipient addresses to
whales_address.txt - 📱 Telegram Notifications: Sends real-time notifications for large transfers
- 🚫 DEX Filtering: Excludes DEX transactions, only detects pure transfers
- 📊 SOL Price Integration: Fetches real-time SOL prices for accurate USD calculations
The purpose of this project is to provide an advanced blockchain monitoring solution that identifies golden opportunities for substantial profit by analyzing large Solana token transfers and tracking subsequent swap activities involving the recipient addresses. By combining real-time monitoring of major transactions with detailed scrutiny of token swaps, this system aims to detect high-potential profit chances efficiently. Instant Telegram notifications enable timely alerts so traders and analysts can make informed decisions quickly, optimizing profit-taking strategies in the dynamic and fast-paced Solana decentralized finance ecosystem.
Edit the .env file with your configuration:
# Telegram Configuration
TELEGRAM_BOT_TOKEN=your_bot_token_here
TELEGRAM_CHAT_ID=your_chat_id_here
# Transfer Monitoring Configuration
MIN_TRANSFER_USD=4000
MONITORED_ADDRESSES=address1,address2,address3
# WebSocket Configuration
HELIUS_API_KEY=your_helius_api_key
TELEGRAM_BOT_TOKEN: Your Telegram bot tokenTELEGRAM_CHAT_ID: Your Telegram chat ID for notificationsMIN_TRANSFER_USD: Minimum transfer amount in USD to trigger notifications (default: 4000)MONITORED_ADDRESSES: Comma-separated list of Solana addresses to monitorHELIUS_API_KEY: Your Helius API key for WebSocket connection
-
Configure your
.envfile -
Run the application:
npm start -
The application will:
- Connect to Helius WebSocket
- Monitor the specified addresses
- Detect large transfers (above USD threshold)
- Save recipient addresses to
../whales_address.txt - Send Telegram notifications
- Transfer Detection: The application uses program ID analysis to distinguish between transfers and DEX transactions
- Amount Calculation: Calculates transfer amounts in SOL and converts to USD using real-time prices
- Threshold Filtering: Only processes transfers above the configured USD threshold
- Whale Saving: Automatically saves recipient addresses to the whales file
- Swap detection : monitoring the saved address and detect the sawp, send notification
- Notifications: Sends detailed Telegram notifications with transaction links
The application classifies transactions as transfers when:
- The transaction involves the System Program (11111111111111111111111111111111)
- No DEX program IDs are present in the transaction logs
- The transaction represents a direct SOL transfer between addresses
Each notification includes:
- Transfer amount in SOL and USD
- Sender and recipient addresses
- Transaction signature with Solscan link
- Slot number
- Whether it's a new whale address
- Automatic reconnection on WebSocket disconnection
- Duplicate transaction filtering
- Comprehensive error logging
- Graceful shutdown handling
- Node.js 14+
- Valid Helius API key
- Valid Telegram bot token and chat ID
- Internet connection for real-time monitoring
For questions, feedback, or collaboration opportunities, feel free to reach out:

