# 2wa.fun > 2wa.fun is a Solana launchpad for tokens priced in curated real-world assets. A creator picks the asset, signs > once, and the token trades on a bonding curve until the raise fills; liquidity then moves to a public pool and > is locked permanently. Market data is public, has no key, and is served from a RAM snapshot with ETag support. ## Start here - Base URL: https://api.2wa.fun — dedicated Public API host. Every path below answers under /api/*, and /v1/* is a clean alias for the same endpoints. - Same-origin: https://2wa.fun/api/* — the identical surface on the web host, for browsers and clients already on the site. - Docs and full reference: https://2wa.fun/docs - OpenAPI 3.1 JSON: https://api.2wa.fun/openapi.json (and https://2wa.fun/openapi.json) - This index: https://api.2wa.fun/llms.txt (and https://2wa.fun/llms.txt) - Site: https://2wa.fun - Explore verified launches: https://2wa.fun/explore The endpoint paths below are written against the same-origin form; swap the base for https://api.2wa.fun/api or https://api.2wa.fun/v1. ## Market data (open reads, GET, Access-Control-Allow-Origin: *) - https://2wa.fun/api/tokens — every verified launch, the curve catalog and the migration watch. Send `If-None-Match` with the previous `ETag` for a 304. - https://2wa.fun/api/token/{mint} — one launch. - https://2wa.fun/api/token/{mint}/analytics — largest token accounts and the newest pool transactions. - https://2wa.fun/api/token/{mint}/logo/{size} — logo as WebP; size is 64 or 256; immutable. - https://2wa.fun/api/quotes — the assets a token can be priced in, with the curves each one offers. - https://2wa.fun/api/curve?quote=&start=&migration= — the raise a custom curve would collect, in quote units. - https://2wa.fun/api/trade/quote?mint=&side=buy|sell&amount=&slippageBps= — a curve estimate; nothing is built or signed. ## Trading (writes, JSON, Cache-Control: no-store) - POST https://2wa.fun/api/trade/prepare — body `{ mint, trader, side, amount, slippageBps? }`; returns the unsigned message for the wallet. - POST https://2wa.fun/api/trade/submit — body `{ mint, trader, signedTransaction }`; verifies the signature, simulates, sends once. ## Launching (writes, JSON or multipart, Cache-Control: no-store) - POST https://2wa.fun/api/launch/prepare — multipart: creator, quoteMint, name, symbol, description, links, logo, and a preset or a pair of market caps. Returns the intent id, its claim secret and the unsigned message. - POST https://2wa.fun/api/launch/refresh — `{ intentId }`; rebuilds the same launch on a fresh blockhash. - POST https://2wa.fun/api/launch/submit — `{ intentId, signedTransaction }`. - GET https://2wa.fun/api/launch/{id} — the intent status; terminal states are verified, failed, expired, cancelled and rejected. - GET https://2wa.fun/api/launch/{id}/stream — the same statuses as server-sent events. - POST https://2wa.fun/api/launch/{id}/cancel — releases a reservation; the claim secret from prepare is required. ## Claims (writes, JSON, Cache-Control: no-store) - GET https://2wa.fun/api/claims?creator= — the wallet's verified launches and how many pools the index holds. - POST https://2wa.fun/api/claims — `{ action: "prepare-creator", creator, mint }` builds the unsigned claim; `{ action: "submit", signer, signedTransaction }` sends it. ## Authentication (writes, JSON, Cache-Control: no-store, HttpOnly cookie) - GET https://2wa.fun/api/auth/siws — a single-use Sign-In With Solana message; `?check=1` reads the session only. - POST https://2wa.fun/api/auth/siws — `{ nonce, address, signedMessage, signature }`. - DELETE https://2wa.fun/api/auth/siws — clears the session. ## Signing Every transaction this API returns is a Solana transaction v1 message: base64 whose first byte is 0x81. The wallet signs those exact bytes; the signed wire goes back unchanged to the matching submit endpoint. A transaction v1 message may use up to 4096 bytes, so a launch fits in one signature. ## Polling Read endpoints answer `ETag`, and a matching `If-None-Match` answers 304 with no body. Poll `/api/tokens` every 10 to 15 seconds, not faster: the snapshot itself refreshes on the same interval. ## Rate limits Each response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (unix seconds). Exceeding a window answers 429 with `Retry-After` and `{ "error": "Too many requests. Try again shortly.", "code": "rate_limited" }`. Windows per client: market data 120 requests a minute, quotes 90, analytics 60, writes 30, sign-in 30. ## Errors Failures answer `{ "error": "…", "code": "…" }`. `code` is present when the reason is machine-readable.