Mempool Radar Engine is the central analysis hub of the Mempool Radar Ecosystem. It polls real-time transaction data from the custom Geth sensor (mempool-radar-core) and performs threat detection and network pressure calculations.
- Data Aggregation: Polls the
txpool_getMempoolTrafficRPC from the Core node every 500ms. - Threat Detection (Primary Signal): Flags high-value transfers from newly seen accounts by combining mempool data with Indexer reputation checks.
- Gas Estimation: Calculates a percentile-based recommended fee using a rolling window of recent mempool samples.
- Pub/Sub Messaging: Broadcasts processed analytics to Redis channels for real-time dashboards.
| Type | Trigger | Description |
|---|---|---|
HIGH_TPS_SPAM |
Same address sends ≥ 50 tx/min | Potential spam/DDoS behavior |
MEV_BOT_ACTIVITY |
Gas fee cap == 0 | Likely private relay or MEV bot |
NEW_ACCOUNT_VALUE |
New account + value ≥ NEW_ACCOUNT_MIN_WEI |
High-value transfer from newly seen address |
New Account + High-Value Transfer
- Uses real-time mempool data (
txpool_getMempoolTraffic) - Verifies "new account" via Indexer reputation (
/api/reputation/:address) - Triggers when
value >= NEW_ACCOUNT_MIN_WEI
- Language: Go 1.24
- Communication: JSON-RPC (Core)
- Messaging: Redis (Pub/Sub & Lists)
| Variable | Description | Default |
|---|---|---|
GETH_URL |
URL of the Geth node | http://localhost:8545 |
REDIS_ADDR |
Redis connection string | localhost:6379 |
INDEXER_URL |
URL of the Indexer API (optional) | http://localhost:8081 |
GAS_WINDOW_SECONDS |
Rolling window size for gas estimation | 60 |
GAS_PERCENTILE |
Percentile used for recommendation (0-1) | 0.8 |
NEW_ACCOUNT_MIN_WEI |
Minimum transfer value to flag new accounts (wei) | 1000000000000000000 |
SPAM_COOLDOWN_SECONDS |
Cooldown per address for HIGH_TPS_SPAM alerts | 120 |
SPAM_THRESHOLD_PER_MIN |
Transactions/min threshold for HIGH_TPS_SPAM | 200 |
SPAM_ENABLED |
Enable/disable HIGH_TPS_SPAM alerts | true |