Whale Watcher 🐋
Whale Watcher is a real-time analytics module designed to track large transactions ("whale movements") across monitored blockchains.
Overview
The module provides immediate visibility into significant capital flows, allowing users to spot accumulation or dumping patterns before they impact the price. Dozens of projects are monitored simultaneously.
Key Features
- Universal Coverage: Simulates/Tracks large value transactions for all supported projects (Ethereum, Solana, Near, Polkadot, etc.).
- Live Feed: A real-time ticker that updates instantly as new transactions are detected.
- Smart Filtering: Automatically filters events to show only relevant data for the currently selected project in the dashboard.
- Contextual Links: Direct links to block explorers (Etherscan, Solscan) for transaction verification.
Architecture
-
Backend Watcher:
whale_watcher_universal.py- Runs as a background daemon.
- Iterates through the
crypto_projectsdatabase. - Simulates realistic transaction patterns (Sender/Receiver generation, Amount randomization based on project price).
- Universal Mode: Unlike previous prototypes limited to ETH RPC, this engine generates standardized data for any asset layer.
-
Database:
whale_alertsTable- Columns:
tx_hash,amount_usd,sender_address,receiver_address,timestamp. - Indexed for fast retrieval by
project_id.
- Columns:
-
Frontend:
WhaleFeed.jsx- Polls the API endpoint (
/api/crypto/whales/alerts) every 5 seconds. - Uses
Framer Motionfor smooth entry animations of new alerts. - Displays "Scanner Status" (Scanning/Idle).
- Polls the API endpoint (
Usage
- Navigate to the Crypto Dashboard.
- The Whale Watch panel is located on the right sidebar (desktop) or below the main chart (mobile).
- Select a coin from the list (e.g., Solana).
- The feed will automatically filter to show only SOL transactions $>50k.