Skip to content

About

πŸ‹ Whale Wallet Tracker for Ethereum β€” Monitor whale addresses & get real-time Telegram alerts when they move. Detects BUY/SELL/SWAP with token info & USD value. Built with Python, Etherscan V2 & CoinGecko API.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‹ Whale Wallet Copier

Monitor whale wallets on Ethereum & get real-time Telegram alerts when they move β€” powered by Etherscan V2 + CoinGecko API + Web3.py.

Python Etherscan Telegram Ethereum License


πŸ” What is Whale Tracking?

Whale tracking is the process of monitoring large Ethereum wallets for significant on-chain activity β€” helping traders get early signals before the market reacts.

This bot tracks wallets using:

  • πŸ“‹ Etherscan V2 β€” real-time transaction & token transfer data
  • πŸ’° CoinGecko API β€” token prices & USD value calculation
  • ⛓️ Web3.py β€” direct Ethereum node interaction via Infura

✨ Features

  • πŸ‹ Multi-Wallet Tracking β€” monitor up to 10 wallets simultaneously
  • 🟒 BUY / SELL Detection β€” identify swap direction automatically
  • πŸ’° USD Value β€” real-time value calculation per transaction
  • πŸͺ™ Token Info β€” shows token received/sent per swap
  • β›½ Gas Tracking β€” gas price used by whale per TX
  • 🏊 DEX Detection β€” Uniswap V2/V3, SushiSwap, 1inch, 0x
  • 🏷️ Whale Labels β€” known whale addresses pre-loaded
  • πŸ€– Telegram Bot β€” 7 interactive commands
  • πŸ“‘ Auto Monitor β€” background polling every 15 seconds

πŸš€ Quick Start

1. Install dependencies

pip install web3 requests

2. Set API keys

Open whale_wallet_copier.py and configure:

ETHERSCAN_API_KEY = "your_etherscan_key"
INFURA_URL        = "https://mainnet.infura.io/v3/your_infura_key"
TELEGRAM_TOKEN    = "your_telegram_bot_token"
TELEGRAM_CHAT_ID  = "your_chat_id"

3. Run as Telegram Bot

python whale_wallet_copier.py

4. Quick CLI check (one-time)

python whale_wallet_copier.py check 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

πŸ€– Telegram Commands

Command Description
/add <address> Add wallet to track
/add <address> <label> Add wallet with custom label
/remove <address> Remove wallet from tracking
/list Show all tracked wallets
/check <address> Manual scan last ~1000 blocks
/monitor on/off Toggle auto monitoring
/whales Show known whale addresses

πŸ“Š Sample Output

πŸ‹ WHALE ALERT
━━━━━━━━━━━━━━━━━━━━━━
πŸ‘€ Vitalik Buterin
πŸ“ 0xd8dA6BF2...6045

🟒 Type     : BUY
🏊 DEX      : Uniswap V3
πŸ’° Value    : $250,000.00 (83.3 ETH)
β›½ Gas Price: 25.4 Gwei
πŸ”— TX       : 0x4f2a1b...

πŸ“₯ Received: 1,250,000 PEPE

⏰ 2026-05-30 22:44:05
πŸ” View on Etherscan

πŸ—οΈ Architecture

whale_wallet_copier.py
β”œβ”€β”€ EtherscanClient     β†’ Etherscan V2 API integration
β”‚   β”œβ”€β”€ get_transactions()      β†’ fetch wallet TX history
β”‚   β”œβ”€β”€ get_token_transfers()   β†’ fetch ERC-20 transfers
β”‚   β”œβ”€β”€ get_eth_balance()       β†’ wallet ETH balance
β”‚   └── get_latest_block()      β†’ current block number
β”œβ”€β”€ PriceClient         β†’ CoinGecko API integration
β”‚   β”œβ”€β”€ get_eth_price()         β†’ ETH/USD price (5min cache)
β”‚   └── get_token_price()       β†’ token/USD price (5min cache)
β”œβ”€β”€ TxDecoder           β†’ Transaction decoder
β”‚   β”œβ”€β”€ get_tx_type()           β†’ BUY / SELL / SWAP / TRANSFER
β”‚   β”œβ”€β”€ get_dex_name()          β†’ identify DEX from router
β”‚   └── get_function_name()     β†’ decode function selector
β”œβ”€β”€ WhaleTracker        β†’ Core tracking engine
β”‚   β”œβ”€β”€ add_wallet()            β†’ add wallet to watchlist
β”‚   β”œβ”€β”€ remove_wallet()         β†’ remove wallet
β”‚   β”œβ”€β”€ check_wallet()          β†’ scan single wallet for new TXs
β”‚   └── scan_all()              β†’ scan all tracked wallets
└── WhaleBot            β†’ Telegram bot with 7 commands
    └── _monitor_loop()         β†’ background polling thread

πŸ“‘ Data Sources

Source Usage
Etherscan V2 Transaction history, token transfers, balances
CoinGecko API ETH & token prices in USD
Infura Ethereum RPC node

πŸ‹ Pre-loaded Whale Addresses

Label Address
Vitalik Buterin 0xd8dA6BF2...6045
Binance Whale 0x47ac0Fb4...503
Binance Hot Wallet 0x28C6c062...560
Binance Cold Wallet 0x21a31Ee1...549
Wintermute 0x9696f59E...976

βš™οΈ Configuration

Variable Default Description
MIN_TX_VALUE_USD $10,000 Minimum TX value to trigger alert
POLL_INTERVAL 15s How often to scan wallets
MAX_WALLETS 10 Maximum wallets to track simultaneously

⚠️ Disclaimer

This tool is for informational purposes only. Copying whale trades carries significant risk. Always do your own research.


πŸ”§ Requirements

web3>=6.0.0
requests>=2.28.0

πŸ‘€ Author

Rizal β€” @rizalcodes

Building Web3 tools with Python πŸβ›“οΈ


πŸ“„ License

MIT License β€” free to use, modify, and distribute.

About

πŸ‹ Whale Wallet Tracker for Ethereum β€” Monitor whale addresses & get real-time Telegram alerts when they move. Detects BUY/SELL/SWAP with token info & USD value. Built with Python, Etherscan V2 & CoinGecko API.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages