Skip to content

SoCloseSociety/WhalegodTG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

WHALEGOD

On-chain whale tracker for Solana & Ethereum β€” wen whale moves, we move first ser.

License: MIT Python 3.11+ Chains $0 API Cost Stars Issues

Quick Start β€’ Features β€’ Commands β€’ FAQ β€’ Contributing


What is WHALEGOD?

WHALEGOD is a free, open-source Telegram bot that tracks whale movements on Solana and Ethereum in real-time. It classifies transactions into 14 categories (CEX flows, DEX swaps, LP events, bridge transfers, memecoin launches, smart money moves, MEV...), enriches them with price data, and delivers formatted alerts to your Telegram group.

Zero API cost β€” runs entirely on free tiers (Helius, Alchemy, Etherscan, DexScreener).

Who is this for?

  • Crypto Traders who want to front-run whale moves
  • DeFi Degens tracking smart money and LP activity
  • Trading Groups looking for a whale alert bot
  • Memecoin Traders catching early Pump.fun launches
  • Developers learning async Python + blockchain APIs

Key Features

  • Multi-Chain β€” Solana (Helius webhooks) + Ethereum (Alchemy RPC)
  • Real-Time β€” Solana via push webhooks, ETH via 60s block polling
  • 14 Transaction Categories β€” CEX, DEX, LP, Bridge, Memecoin, Smart Money, MEV...
  • Smart Classification β€” Bullish/bearish/neutral/degen/alpha signals
  • 50+ Wallet Labels β€” Known exchanges, bridges, protocols auto-identified
  • Customizable Thresholds β€” Per-chat SOL/ETH/USD/LP minimums
  • Wallet Tracking β€” Track up to 10 custom wallets per user
  • Anti-Flood β€” Automatic digest mode during whale storms (>20 events/min)
  • Deduplication β€” 2000-tx cache prevents duplicate alerts
  • Rate Limiting β€” Per-API semaphores for safe usage
  • Price Caching β€” Multi-source with fallback (Jupiter β†’ DexScreener β†’ CoinGecko)
  • Docker Ready β€” One-command deployment with health checks
  • $0 API Cost β€” Runs on free tiers only
  • Free & Open Source β€” MIT license

Quick Start

With Docker (recommended)

git clone https://github.com/SoCloseSociety/WhalegodTG.git
cd WhalegodTG
cp .env.example .env
# Edit .env with your API keys
docker compose up -d

Manual

git clone https://github.com/SoCloseSociety/WhalegodTG.git
cd WhalegodTG
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
# Edit .env with your API keys
python -m bot

Free API Keys

Service Sign Up Free Tier
Telegram @BotFather Unlimited
Helius helius.dev 1M credits/month
Alchemy alchemy.com 300M compute units/month
Etherscan etherscan.io 5 req/sec

How It Works

Solana (Helius Webhook)     Ethereum (Alchemy RPC)
         β”‚                           β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β–Ό
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚    Alert Engine       β”‚
         β”‚                      β”‚
         β”‚  Parse β†’ Enrich β†’    β”‚
         β”‚  Classify β†’ Dedup β†’  β”‚
         β”‚  Log β†’ Format β†’ Send β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β”‚
                     β–Ό
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚   Telegram Groups     β”‚
         β”‚   (formatted alerts)  β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Transaction Categories

Category Signal Example
CEX Deposit Bearish Whale sends 500 SOL to Binance
CEX Withdrawal Bullish 1000 ETH withdrawn from Coinbase
DEX Swap Varies Large swap on Jupiter/Uniswap
LP Add Bullish New liquidity added to pool
LP Remove Bearish Liquidity pulled from pool
Bridge Transfer Neutral Cross-chain move
Memecoin Launch Degen New Pump.fun token
Smart Money Alpha VC/fund wallet moves
MEV Activity Caution Sandwich attack detected
Accumulation Bullish Repeated buys over time
Distribution Bearish Systematic selling

Bot Commands

Command Description
/start Subscribe to whale alerts
/whale [sol|eth] Recent whale movements
/top [24h|1h|7d] Top moves by volume
/track <address> [label] Track a wallet
/untrack <address> Stop tracking
/watchlist View tracked wallets
/scan <token> Token analysis
/trending Trending tokens
/chains Chain status & prices
/gas ETH gas + SOL fees
/settings Configure thresholds
/stats Bot statistics
/help Full command reference

Configuration

Variable Description Required
TELEGRAM_BOT_TOKEN Bot token from @BotFather Yes
HELIUS_API_KEY Solana RPC + webhooks Yes
ALCHEMY_API_KEY Ethereum RPC Yes
ETHERSCAN_API_KEY Block data & gas Yes
COINGECKO_API_KEY Price fallback Optional
WEBHOOK_HOST Public URL for Helius webhooks Optional
DEFAULT_SOL_THRESHOLD Min SOL for alerts (default: 500) No
DEFAULT_ETH_THRESHOLD Min ETH for alerts (default: 50) No
DEFAULT_USD_THRESHOLD Min USD for alerts (default: 50000) No

Project Structure

WhalegodTG/
β”œβ”€β”€ bot/
β”‚   β”œβ”€β”€ main.py              # Entry point & event loop
β”‚   β”œβ”€β”€ config.py            # Environment & constants
β”‚   β”œβ”€β”€ database.py          # SQLite schema & queries
β”‚   β”œβ”€β”€ chains/
β”‚   β”‚   β”œβ”€β”€ solana.py        # Helius integration
β”‚   β”‚   └── ethereum.py      # Alchemy/Etherscan integration
β”‚   β”œβ”€β”€ handlers/
β”‚   β”‚   β”œβ”€β”€ commands.py      # Bot commands
β”‚   β”‚   └── callbacks.py     # Inline button callbacks
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ alert_engine.py  # Core pipeline
β”‚   β”‚   β”œβ”€β”€ price_service.py # Token prices & caching
β”‚   β”‚   └── label_service.py # Wallet identification
β”‚   └── utils/
β”‚       β”œβ”€β”€ formatter.py     # Message formatting
β”‚       β”œβ”€β”€ rate_limiter.py  # API rate limiting
β”‚       β”œβ”€β”€ retry.py         # Retry logic
β”‚       └── whale_quotes.py  # 100+ meme quotes
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ deploy.sh
└── requirements.txt

Troubleshooting

Bot doesn't start

  1. Check .env β€” all required keys must be set
  2. Verify Python 3.11+ with python --version
  3. For Docker: check docker compose logs whalegod

No Solana alerts

  1. Verify HELIUS_API_KEY is valid at helius.dev dashboard
  2. Check that WEBHOOK_HOST is publicly accessible (for webhooks)
  3. Bot logs webhook registration status on startup

No Ethereum alerts

  1. Verify ALCHEMY_API_KEY and ETHERSCAN_API_KEY
  2. ETH polling runs every 60s β€” wait at least 2 minutes
  3. Check thresholds β€” default is 50 ETH minimum

FAQ

Q: Is this free? A: Yes. Bot is free, all APIs have free tiers. Total cost: $0.

Q: Do I need a VPS? A: For Solana webhooks, you need a public URL. Docker on a $4/month VPS works perfectly.

Q: Can I track other chains? A: Currently Solana + Ethereum. Adding new chains requires implementing a new chain module in bot/chains/.

Q: How fast are the alerts? A: Solana: instant (webhooks). Ethereum: ~60 seconds (polling).


Alternatives Comparison

Feature WHALEGOD Whale Alert Nansen Arkham
Price Free Freemium $150/mo $50/mo
Solana Yes No Yes Yes
Ethereum Yes Yes Yes Yes
Telegram bot Yes Yes No No
Self-hosted Yes No No No
Open source Yes No No No
Customizable Fully No Limited Limited

Contributing

Contributions are welcome! Please read the Contributing Guide before submitting a pull request.


License

This project is licensed under the MIT License.


Disclaimer

This tool is provided for educational and informational purposes only. It does not constitute financial advice. On-chain data may be delayed or incomplete. The authors are not responsible for trading decisions made based on the bot's alerts.


If this project helps you, please give it a star!
Star this repo


Built with purpose by SoClose β€” Digital Innovation Through Automation & AI
Website β€’ LinkedIn β€’ Twitter β€’ Contact

About

πŸ‹ On-chain whale tracker for Solana & Ethereum β€” real-time alerts, 14 tx categories, wallet tracking, anti-flood. Python + Docker. /bin/zsh API cost.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors