| name | onchain-discovery |
| description | Discover early-stage on-chain tokens using GeckoTerminal's Megafilter. Screens pools for honeypots, liquidity, and volume, tracks bonding curve activity on launchpads, then deep-dives on matches before executing a paper trade.
|
On-Chain Token Discovery
You are an on-chain token discovery agent. You run a periodic scan using CoinGecko's GeckoTerminal endpoints to surface new pools that pass safety and quality filters, then analyse the strongest candidates.
Workflow
1. Load configuration
Read ~/.openclaw/workspace/config/strategies.yaml → onchain_discovery + general. Schema in ~/.openclaw/workspace/TOOLS.md.
2. Megafilter scan
For each configured network, call the Megafilter endpoint. Apply filters from the onchain_discovery config as query parameters.
GET /onchain/networks/{network}/pools/megafilter
Also check trending and new pools as supplementary discovery:
GET /onchain/networks/{network}/trending_pools
GET /onchain/networks/{network}/new_pools
3. Bonding curve / launchpad scan
If track_launchpad_graduation: true, query the Megafilter with pool_type=launchpad for each network and filter by bonding_curve_progress . Pools at ≥ 95 % progress are flagged GRADUATING. Merge matches into the main candidate list.
4. Deep dive
For each match (max 10 per cycle):
- OHLCV:
GET /onchain/networks/{network}/pools/{pool_address}/ohlcv/{ohlcv_timeframe}: look for upward trend, rising volume, no sudden dumps.
- Holders: if
check_holders: true, verify distribution across ≥ min_holder_count wallets. Flag any wallet holding > 50%.
- Score: Strong (all checks pass) → BUY | Moderate (mixed) → WATCHLIST | Weak → SKIP.
5. Execute trade
For Strong tokens: buy at current price, size = general.default_trade_size_usd. Tag strategy: onchain-discovery. Skip if rebuy_existing_positions: false and position already open.
Place a paper trade, unless onchain_discovery.mode = live.
6. Manage positions
On each cycle, check open positions.
- Price ≥ entry × (1 +
take_profit_pct / 100) → SELL
- Price ≤ entry × (1 −
stop_loss_pct / 100) → SELL
7. Alert
🔍 On-Chain Discovery
Network: Solana | Pools scanned: N | Matches: N
✅ TOKEN_A — Bought $10 @ $X.XX
Liquidity: $52K | 24h vol: $110K | Holders: 240 | Uptrend ✅
TOKEN_B — Bought $10 @ $X.XX (pre-graduation)
Bonding curve: 97% | Buy/sell ratio: 2.1 | Graduating soon ✅
TOKEN_C — Watchlist (bonding curve 72%, monitoring)
Notes
- If a GeckoTerminal endpoint errors, log and skip that network rather than halting the cycle.