Docs / API
API
App Router route handlers. No fake donation database. Coins come from the Ding launch registry, optionally hydrated from pump.fun.
Coins
GET /api/pump/coins — Ding launches only. GET /api/pump/coin/{mint} — pump.fun coin plus Solana supply. GET /api/launch — same registry. GET /api/meta/{id} — pump metadata JSON for a registered launch.
Launch
POST /api/launch with creatorName, platform, profileUrl, name, ticker, description, image, twitter, website, creatorPct, and payer (the connected wallet). Returns a mint-signed create_v2 transaction plus metadata URI and feeWallet. POST /api/launch/send broadcasts the wallet-signed tx. POST /api/creators/wallet returns the shared Ding fee wallet for a parsed creator URL.
POST /api/launch
{
"creatorName": "Ninja",
"platform": "twitch",
"profileUrl": "https://twitch.tv/ninja",
"name": "Ninja",
"ticker": "NINJA"
}Streams and RPC
GET /api/streams/twitch, /api/streams/youtube, /api/streams/tiktok. GET /api/solana/health returns slot and RPC host. Set keys in .env.local from env.example. SOLANA_RPC_URL is optional; public endpoints are the fallback.