EpicLaunch Documentation
Welcome to the EpicLaunch docs. This platform lets you launch Solana tokens with a bonding curve, real royalties, and on-chain analytics. No backend database is required for core trading/royalty features; everything reads from-chain.
Core Concepts
- Launch Program (Anchor 0.31.1): Stores token metadata, bonding curve reserves, and royalty accounting in a PDA per mint.
- Royalties: 2% total fee on buys/sellsโ1% to platform treasury, 1% to social royalty pool configured by the creator.
- Migration: When threshold reached, curve migrates to Raydium with SOL and remaining tokens. Liquidity SOL is burned.
Key On-chain Accounts
Launchaccount per token: name, symbol, uri, reserves, total_supply, created_at, total_royalties_in, creator_claimed, social_claimed, social_share_bps, etc.launch_vaultPDA (mint-seeded)royalty_vaultPDA (mint-seeded)
Useful API Endpoints
/api/launchesโ List Launch accounts from-chain with sorting/paging and computed metrics./api/home/statsโ Aggregated stats for homepage (tokens launched, active users, total volume, royalties paid)./api/trading/sol-priceโ Live SOL/USD (CoinGecko/Coinbase/Binance with fallback)./api/royalties/creator/balanceโ Creator claimable per connected wallet./api/royalties/creator/claimโ Claim creator royalties./api/royalties/social/balanceโ Social royalty pool/claimable for verified user./api/royalties/social/claimโ Claim social royalties (attested by platform authority).
Frontend Pages
- Launch: Create token with metadata and seeds (EPIC) PDA derivation.
- Explore: Browse tokens from
/api/launcheswith server-side sort/paging. - Portfolio: Holdings/Trades and Royalties tabs. Royalties shows creator and social claims.
- Token: Token detail, price/marketcap, curve, analytics, and trading data.
Environment
NEXT_PUBLIC_RPC_URL,NEXT_PUBLIC_TOKEN_LAUNCHPAD_PROGRAM_IDNEXT_PUBLIC_SOL_PRICE_USDfallback for price