This document highlights key code sections that demonstrate the technical strengths and architectural patterns implemented in this multi-chain DEX scanner.
RATU Moon Radar is a multi-chain DEX pair scanner and early token detector using the Moralis API. The system demonstrates prototyping-focused blockchain integration patterns including multi-chain support, dynamic pair parsing, and connection pooling.
File: Configuration files
Lines: Chain-specific settings
The system supports multiple blockchain networks (Ethereum, BNB Chain, Polygon, Base) with unified interface and chain-specific token address mappings.
Why it's notable:
- Unified interface across different blockchain networks
- Chain-specific configuration for token address mappings
- Supports major DEX protocols per chain (Uniswap, PancakeSwap, QuickSwap)
- Enables comprehensive token discovery across networks
File: Pair parsing implementation
Lines: parse_pair() function
The system implements flexible CLI parsing supporting multiple input formats: ethusdt, eth/usdt, ETH/USDT with automatic separator detection.
Why it's notable:
- Handles multiple input formats gracefully
- Token address lookup per chain handles variations
- Improves user experience with flexible input handling
- Automatic separator detection and normalization
File: HTTP client implementation
Lines: httpx connection pooling setup
The system uses httpx connection pooling to reduce API latency for repeated requests by reusing connections across calls.
Why it's notable:
- Reduces API latency for repeated requests
- Reuses connections across requests
- Optimizes performance for multi-chain scans
- Type-safe dataclass results ensure structured output