Skip to main content
Pick the chain once; read that chain’s token record; sign against that chain’s router.
Skip the assembly: POST /api/v1/agent/trade/prepare runs this recipe server-side and returns the unsigned transaction with a verdict. Your key still signs. AI agents →
1

Read the token record

GET /api/launchpad/tokens/{address}?chain={chain} - pair, hook (curve), tax (buyTaxBps / sellTaxBps, or taxBps pre-V6). One batched call beats a loop; a 429 is refused, never empty.
2

Build the PoolKey

(currency0, currency1, fee, 60, hook): the token and its pair ordered by address, with fee 0 on V7 pools and 3000 on every other launcher. The token is currency0 except in B20 mode, where it can be either side. The hook is part of the pool’s identity - the per-generation trap.
3

Quote at the live rate

AdvancedFeeHookV6.taxFor(key, zeroForOne) - includes the anti-sniper toll on a fresh launch. Set minOut with at least that headroom. The three rules
4

Swap through the router

Exact-in, approve first. The router
5

Decode reverts by name

CurrencyNotSettled is reduce size. HopTooThin (0xb5377e60) is the pair’s feed refusing, raised by a contract the launcher calls. The table
Launching from a bot? The tuples and constraints. Evaluating a flagged token? What each scanner flag means here.