# SECOND > The dev buys second. SECOND ($SECOND) is a pump.fun launchpad on Solana. Everyone pools SOL into a > launch's pot; at the start ONE transaction creates the coin, buys with the whole pot (every wallet, same > price), and THEN buys the dev's bag at the higher price the pot pushed the curve to. The dev's bag is > locked 7 days. Base URL: https://secondbuy.fun . Full guide for agents: https://secondbuy.fun/skill.md All amounts are lamport strings (1 SOL = 1,000,000,000 lamports) with a number twin ending in _sol; tokens end in _ui. Errors are {"error": code, "message": plain English}. Write endpoints return unsigned transactions; the wallet signs and sends them, then calls POST /api/confirm {"sig"}. ## Rules - Launch: name 1 to 32 bytes, ticker 2 to 10 of A-Z 0-9 ("$cat" is "CAT"), start 30 minutes to 24 hours after creation rounded up to the next 5-minute mark, min pot 0.5 SOL or more (default 1 SOL), min wallets 3 or more (default 10), max pot at most 75 SOL (default 50 SOL), dev buy 0 or 0.01 to 5 SOL and at most min pot. - Create: the launcher sends dev buy + 0.02 SOL listing fee to the launch's own vault, memo "second:dev:v1:" signed by the launcher (the fee payer). The listing fee is refunded if the launch refunds. - Join: SOL to the launch's vault, memo "second:join:v1:" signed by the sender (the fee payer). At least 0.01 SOL per join, at most 5 SOL per wallet. Joins over max pot, after the lock, or by the launcher are refunded in full. - Leave: until the lock, sign "second:leave:v1::" (ed25519 message, base58 or base64, at most 600 seconds old, 120 seconds ahead) and POST /api/leave: full refund. - Lock: 5 minutes before the start. Under min pot or min wallets: everyone, dev buy and listing fee included, refunded in full. - Start: one transaction signed by the launch's vault and a fresh mint: pump.fun create_v2 (the launcher is the creator), buy #1 with the pot minus the 1% pad fee and 0.0021 SOL per wallet (its token account), then buy #2 with the dev buy minus 1% and 0.0021 SOL. public_price_sol, dev_price_sol and dev_premium_pct are recorded from the fills. Tried up to 3 times (new mint each), then everyone is refunded. - Tokens: the public tokens go to every wallet pro rata to SOL in (the dust to the last wallet that joined). The dev's tokens stay in the vault 7 days, then go to the launcher. - Pad fee: 1% of pot and dev buy, only if the coin launches. It goes to the treasury and buys and burns $SECOND. - Refused payments under 0.001 SOL are kept; everything else refused is refunded in full by the crank (every 5 minutes). ## Endpoints - GET /api/stats: launches_filling, launches_launched, wallets_joined, sol_pooled, avg_dev_premium_pct, second_burned_ui, treasury, second_mint, last_crank - GET /api/launches?status=filling|launched|refunded|all&limit=50: { launches: [Launch] } - GET /api/launch?id=: { launch, joins: [{ wallet, sol_in_sol, joined_at, left_at, tokens_ui, sent_sig }], receipt } - GET /api/tape?limit=50&id=: { events: [{ kind, id, ticker, wallet, sol, tokens_ui, sig, at }] } - GET /api/me?wallet=
: { joins, launches } - POST /api/create {wallet, name, ticker, description?, image?, twitter?, website?, start_in_minutes?, min_pot_sol?, min_wallets?, max_pot_sol?, dev_sol?}: { id, vault, transaction, start_at, lock_at } - POST /api/join {wallet, id, sol}: { transaction, vault } - POST /api/leave {wallet, id, ts, signature}: { ok, refund: "queued" } - POST /api/confirm {sig}: { ok, kind: create|join, id, accepted, reason }