The wallet intelligence system is the backbone of Alpha Leak’s edge. A raw buy event on Pump.fun is noise. That same event, attached to a wallet with a 40% graduation rate, a 0.8 capture efficiency, and a consistent history of top-10 entries, is a different thing entirely. Building and maintaining that context for every wallet the system encounters is what the scoring pipeline exists to do.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/0xW1re/solvedocs/llms.txt
Use this file to discover all available pages before exploring further.
Wallet discovery
Wallets enter the tracking system through one of three paths.Graduation-based discovery
When a token graduates (crosses 85 SOL),
WalletDiscovery processes all buyers of that token. Wallets that bought early and held are promoted to is_active = true status.Signal-based discovery
Any wallet that triggers a signal — because it trades alongside a known tracked wallet — is added to the
wallets table for future enrichment.Manual seeding
Wallets can be added directly to the
tracked_wallets Redis set for immediate attention, bypassing the discovery process entirely.Enrichment on arrival
The
WalletEnrichment service continuously processes newly discovered wallets, fetching historical Birdeye data to bootstrap their feature profiles without waiting for live trades.A wallet that was active before the pipeline started can arrive in the system with a complete historical record —
WalletEnrichment retroactively fills in its profile from Birdeye data.The alpha score
The alpha score (0–100) is a single number summarising a wallet’s historical edge. It is designed to reward the behaviours that actually predict future token success.Point-in-time correctness
The alpha score has an important property: it is computed at the time of scoring, using only data available up to that point. When the ML model recordswallet_score_at_entry, it captures the score as it was when the signal fired, not the wallet’s current score.
This prevents lookahead bias in model training and ensures that historical backtests reflect what was actually knowable at the time. A wallet that became good after a given trade cannot inflate the signal score for that trade retroactively.
Alpha decay
Not all smart-money signals age equally. Some wallets move markets — when they buy, price moves within seconds. Others have a longer information half-life where their signal remains valid for minutes or more. TheAlphaDecayTracker computes a per-wallet decay curve: the average return achievable if you had bought at 8 fixed delays after the wallet’s signal.
| Delay bucket | Meaning |
|---|---|
| 1s | Near-instant follow |
| 5s | Fast automation required |
| 10s | Tight bot execution |
| 30s | Moderate-latency execution |
| 60s | Manual or alert-based trading feasible |
| 120s | 2-minute window still holds edge |
| 300s | 5-minute window |
| 600s | 10-minute window |
- Alpha half-life — the delay at which expected return drops to 50% of the instant return.
- Optimal follow delay — the delay that maximises expected return (buying instantly is not always optimal).
Bot detection
TheBotDetector runs every 30 minutes and classifies wallets across three behavioral patterns.
High-frequency bot
Bought 20+ distinct tokens within a 2-hour window. Characteristic of broad sniping bots that buy every new token regardless of quality.
Micro-buyer bot
Bought 10+ tokens in 6 hours with an average position below 0.05 SOL and very low size variance (stddev < 0.02 SOL). Matches bots testing wallets or accumulating many tiny positions.
Quick-flipper bot
Executed buy-to-sell within 60 seconds on 3 or more tokens in 6 hours. Common in pump-and-dump participants and short-term snipers.
Downstream effects
Detected bots are written to the
wallets table with their bot_type, added to the known_bots Redis set, and capped at a maximum alpha score of 30. The is_bot field feeds directly into the ML model.Copy-trade graph
The copy-trade detection system maps the directional relationship between wallet pairs. When wallet A consistently buys a token 15 seconds before wallet B, across dozens of tokens, it is likely that B is following A through an alert system or automation. The system resolves which wallet is the originator and which is the follower. Signals from followers are treated with lower confidence than signals from originators — a follower’s buy means someone already paid a higher price.| Classification | Latency profile | Implication |
|---|---|---|
bot_copy | Sub-second following | Fully automated copy, signal already stale |
alert_copy | 5–30 seconds | Alert-driven, slight staleness |
manual_copy | 30–120 seconds | Human acting on notification, more latency tolerance |