Contract Details
Tech Stack
Python 3.10+ websockets web3.py asyncio
Chains
Ethereum
Description
Real-time mempool monitoring service that detects sandwich attacks targeting your transactions or contracts. Alerts via webhook, Telegram, or Discord when potential sandwich patterns are identified.
Features
- ✓ WebSocket mempool stream monitoring
- ✓ Sandwich attack pattern detection algorithm
- ✓ Configurable watch addresses and contract filters
- ✓ Multi-channel alerts: webhook, Telegram, Discord
- ✓ Historical attack logging with transaction details
- ✓ Frontrun/backrun pair identification
- ✓ Profit estimation for detected sandwiches
- ✓ Pytest test suite with simulated mempool data
# Sandwich Detector — Monitoring Dashboard # Real-time mempool monitor detecting sandwich attacks on your txs. from prometheus_client import Gauge, start_http_server import asyncio metric = Gauge("sandwich_detector_health", "Health score") async def monitor_loop(): while True: # ... full implementation in purchased package metric.set(1.0) await asyncio.sleep(30)