Market data is open and keyless: launches, quotes and curve estimates in one request, with an ETag so a client polls for free. Writes hand your wallet a transaction to sign and nothing else - the chain decides the rest.
Base URL https://api.2wa.fun: the same endpoints under /api/*, plus the clean /v1/* alias. https://2wa.fun/api/* answers identically on the web host.
Real-world assets used to sit behind brokers, account minimums and market hours. On Solana they are tokens anyone can hold. This launchpad takes the next step: anyone can launch a token that is priced in one, and the API is how a program does what the website does.
Open to anyone
No broker, no minimum, no application. A wallet is enough, and so is an HTTP client.
Curated assets only
Quotes are added one at a time, after each one is tested end to end. The list is data, read from /api/quotes.
One wallet, one signature
The creator signs and pays from their own wallet. Every write returns a transaction to sign, never a key.
The lifecycle in three steps
Pick a quote. The token is priced in one curated asset: buyers pay in it and the raise is held in it.
Fill the curve. Trading runs on a bonding curve whose price is a function of the reserves, so no market maker is needed.
Permanent liquidity. When the raise fills, liquidity moves to a public pool and is locked for good.
Mechanics
What the chain enforces
Priced in, not backed by
A quote is the asset a token trades against, not a claim on it. This token is new; it is not the asset. Quotes are Token-2022 mints, so an issuer's own transfer fee, when one exists, is read from the mint and shown before a launch.
Permanent graduation
A filled curve migrates to a public pool and 100% of the liquidity is locked: no vesting, no cliff, no unlock date. The migration is the protocol's own keeper, not a privileged caller.
Anti-sniper schedule
A launch can start with a higher trading fee that decays over a chosen number of seconds to the standard rate. Bots pay the early rate like everyone else; there is no allowlist to join.
Launch verification
Every launch carries an SPL Memo binding the intent, and a launch record written by the program. A token is listed on this site only after the server reads both back on-chain, against a transaction v1 message whose first byte is 0x81.
Quickstart
Three flows, one copy
Each snippet runs as written against this deployment. Replace the wallet and signature placeholders with your own; everything else is live data.
Base https://api.2wa.fun; /v1/* works the same. Copy a flow, run it, read the response.
1. Read live markets
The whole catalog in one response. Keep the ETag and every later poll is a 304 with no body. /v1/tokens is the same call as /api/tokens.
# the catalog, with its validator on the response headers
curl -sS -D - https://api.2wa.fun/api/tokens -o tokens.json
# poll: 304 means nothing changed, keep the copy you have
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'If-None-Match: W/"6f1c0a9d2b7e3415"' \
https://api.2wa.fun/api/tokens
2. Quote a swap
A curve estimate: amount is in quote units for a buy and in token units for a sell. Nothing is signed.
The response is a transaction v1 message: base64 whose first byte is 0x81. Sign those exact bytes and send the wire back unchanged.
PREP=$(curl -sS -X POST https://api.2wa.fun/api/trade/prepare \
-H 'content-type: application/json' \
-d '{"mint":"7VhkEDgCPs952pv2Fo3mVs9iS2T1T5GTfK7yAbWs2RWA","trader":"<WALLET>","side":"buy","amount":0.5,"slippageBps":100}')
# PREP.transaction starts with 0x81: sign those bytes in the wallet,
# then post the signed wire back unchanged.
curl -sS -X POST https://api.2wa.fun/api/trade/submit \
-H 'content-type: application/json' \
-d '{"mint":"7VhkEDgCPs952pv2Fo3mVs9iS2T1T5GTfK7yAbWs2RWA","trader":"<WALLET>","signedTransaction":"<SIGNED_BASE64>"}'
Generated from the same document the JSON file serves. Filter by tag or text, open a row for its parameters and schemas, and run any read against this origin to see the real status, latency and headers.
21 of 21 operations. `GET` rows can be run against this deployment.
The full catalog as one JSON snapshot: tokens, curve catalog and the migration watch. Send the previous ETag back as If-None-Match to receive 304 with no body. Answered with Access-Control-Allow-Origin: *; safe to call from a browser on any origin.
Parameters
Field
Type
Notes
If-None-Match (header)
string
The ETag from a previous response. A match answers 304 Not Modified.
Response 200 · The current catalog.
Field
Type
Notes
v*
integer
Snapshot format version.
cluster*
"devnet" | "mainnet"
updatedAt*
integer
Unix seconds the snapshot was built.
count*
integer
tokens*
Token[]
curves*
CurveCatalogRow[]
migrationWatch*
MigrationWatch
Read-only summary of curves that filled, pools that migrated, and curves still filling.
curl -sS 'https://2wa.fun/api/tokens'
No inputs: the request runs as it is.
Bots & indexers
Reading without waste
Poll with the validator
/api/tokens and /api/quotes answer an ETag. Send it back as If-None-Match and an unchanged catalog costs a 304 with no body. The snapshot itself refreshes every 10 to 15 seconds, so polling faster gains nothing.
Respect the window
Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. A 429 carries Retry-After; back off for that long instead of retrying immediately.
Read the code, not just the status
Failures answer { error, code }. code is stable when the reason is machine-readable, so a bot can branch on it instead of matching prose.
One API host
https://api.2wa.fun is the dedicated public API host: the same paths under /api/*, plus a clean /v1/* alias, all with open CORS on reads. Any other path on that host answers a plain JSON 404. The website keeps serving https://2wa.fun/api/* unchanged, so either base works in a bot.
Two files, one source
/openapi.json is the schema; /llms.txt is the plain-text index. Both are generated from the same definitions the routes use, so neither can describe an endpoint that is not there.
Signing, precisely
A transaction v1 message is base64 whose first byte is 0x81. The wallet signs those exact bytes and the signed wire goes back unchanged to the matching submit endpoint, where the signature is checked against the message before anything is simulated or sent.