# Launchpad API

A non-custodial backend for launching coins on pump.fun, trading them, and reading the registry of what it
has launched. Every write returns an unsigned transaction for a wallet to sign; the API never holds funds or keys.

- Network: **mainnet**
- Base URL: `https://api.qqqqqqqqqqqqqqqqq.xyz`
- Endpoints: **49**
- This document: `https://api.qqqqqqqqqqqqqqqqq.xyz/llms-full.txt` · JSON: `https://api.qqqqqqqqqqqqqqqqq.xyz/v1/catalogue`

## Access for your domain is available on request.

The /v1 endpoints are currently closed to every domain — not just yours. Access is granted per-origin, and enabling it is a configuration change the operator makes, not an application you have to qualify for.

To request it, send the operator the exact origins your site will call from — production, staging and any preview domains — as full origins including the scheme, for example https://example.com and https://www.example.com. Wildcards matching one DNS label are supported for preview hosts.

A server-side caller that sends no browser Origin needs a project key instead: ask for one and give the operator the source IP it will call from.

Everything in this catalogue stays readable meanwhile, so an integration can be written and reviewed before access is turned on.

**Contact:** qoq.qoqovich@gmail.com

## Access

**Read this before trying any `/v1` call.**

- Access for your domain is available on request — see the enablement section. The /v1 endpoints are currently closed to every domain, and opening one is a configuration change, not an application.
- This API is not open. Every /v1 request must carry an Origin header matching a registered project origin, or it is refused with 403 FORBIDDEN — enforced server-side, not just by CORS, so curl and scrapers get nothing.
- Browsers send no Origin header on same-origin requests, so a frontend served from this API’s own domain would have every call refused. Host it on its own hostname.
- To get access, ask the operator to register your exact origins — production, staging and preview. Server-side callers with no browser Origin need a project key sent as x-project-key, and the operator needs your source IP.
- Access is per-origin plus per-wallet sign-in. There is no API key.

## How it works

- Non-custodial. Every write returns an unsigned transaction for the user’s wallet to sign — sign only, never sign-and-send, never modify. The API verifies the returned bytes against what it built, co-signs where needed, broadcasts, and tracks confirmation.
- In Wallet Standard terms: sign a launch or trade with solana:signTransaction, and sign in with solana:signMessage. Do not reach for solana:signAndSendTransaction — a launch needs the mint signature the API adds after you return the bytes, so a wallet that broadcasts on its own sends an incomplete transaction. A wallet that offers only signAndSendTransaction has its own sequence, via /v1/launch/cosign.
- Signing in is only required to launch. Trading and transfers are reachable from a registered origin with no session: the transaction they return is useless without the wallet’s signature anyway. Each endpoint states its own access level.
- Every coin is a real pump.fun coin, created with create_v2 plus a mandatory dev buy in one transaction. It appears on pump.fun, DexScreener, wallets and explorers like any other.
- Only coins launched through this API are listed or tradable through it. Everything else is NOT_FOUND.
- A launchpad may be delegation-only, reported as project.delegationOnly on GET /v1/config. There the creator never holds sellable supply, and the plain and NFT launch routes are closed: only /v1/launch/prepare-and-delegate works.
- Live price data can be read from Solana RPC by the client; GET /v1/market serves the same figures for clients that cannot. This API also serves the registry, trade history, candles and holders.
- One backend serves several launchpads. A request is attributed to a project by its Origin, and only ever sees that project’s coins.

## Conventions

- Amounts are integer strings, never JSON numbers: SOL in lamports, tokens in base units at 6 decimals. Parse with BigInt — a JSON number is rejected with VALIDATION.
- Addresses are base58. Wallet fields must be on-curve; PDAs are rejected.
- JSON bodies use content-type: application/json. The launch endpoints are multipart/form-data, and the file part must come last.
- Errors are always { error: { code, message, details? } }. The code is stable and safe to branch on; the message is safe to show a user.
- After submitting, poll the matching status endpoint every ~1.5 s until a terminal status.

## Sequences

Endpoints chain into these flows. Every write is a multi-step handshake, so start here rather than with the
endpoint list below.

### Launch a coin

*The creator wants a new pump.fun coin with a dev buy.*

1. POST /v1/auth/challenge { wallet } — returns a message to sign. Skip if you hold an unexpired token.
2. Wallet signs the message bytes with solana:signMessage. This is a message, not a transaction: no cost, no gas.
3. POST /v1/auth/verify { wallet, message, signature } — returns a token valid 24 h. Send it as Authorization: Bearer.
4. POST /v1/launch/prepare — multipart, image part last — returns { launchId, mint, transaction, quote }.
5. Show quote.estimatedTotalCostLamports as the cost, then have the wallet sign `transaction`. Sign only: do not send.
6. POST /v1/launch/submit { launchId, signedTransaction } — the API verifies, co-signs with the mint key and broadcasts.
7. GET /v1/launch/:launchId every ~1.5 s until status is confirmed, failed or expired. On confirmed, `token` is the coin.
8. If submit returns 410 BLOCKHASH_EXPIRED, call POST /v1/launch/:launchId/refresh, sign the new transaction, submit again.

### Launch from a wallet that can only sign and send

*The wallet exposes signAndSendTransaction but not signTransaction, so it cannot hand back signed bytes.*

1. Sign in and POST /v1/launch/prepare as usual.
2. POST /v1/launch/cosign { launchId, transaction } — send the transaction back unsigned. The API adds the mint signature and returns the transaction.
3. The wallet signAndSendTransaction that returned transaction: it adds the creator signature and broadcasts itself.
4. Poll GET /v1/launch/:launchId as usual. Do not call /v1/launch/submit on this path — the wallet has already broadcast.
5. Prefer the normal flow whenever signTransaction exists. This one gives up the API retrying a dropped transaction, and every wallet worth supporting offers signTransaction.

### Launch and delegate the dev buy

*The launchpad hands the creator’s dev buy to a custodian, so the creator never holds it.*

1. Check GET /v1/config reports project.stakeCustodian. Without it this flow returns 404 and should be hidden.
2. If that config also reports project.delegationOnly, this is the ONLY way to launch on it: /v1/launch/prepare, prepare-and-mint and prepare-and-mint-manlets all return 404 there. Build the launch form around this route and do not offer the others.
3. Sign in as above.
4. POST /v1/launch/prepare-and-delegate — same multipart form as prepare — returns the usual shape plus delegatedTo.
5. One signature covers everything: the coin is created, the dev buy executes, and the tokens move to the custodian in that one transaction.
6. Submit and poll exactly as for a plain launch.

### Launch and mint a Genesis NFT

*The coin should also have a 1-of-1 NFT of itself.*

1. POST /v1/launch/prepare-and-mint instead of prepare. Ignore the nftTransaction it returns.
2. For a launchpad whose NFTs are the manlets characters, POST /v1/launch/prepare-and-mint-manlets instead, with an extra `colour` form field — one of red, orange, gold, lime-green, turquoise, electric-blue, purple, pink, silver, graphite. It is required there, and the rest of this sequence is unchanged.
3. Sign and submit the coin transaction, then poll until status is confirmed.
4. POST /v1/launch/:launchId/nft/prepare — builds the NFT on a fresh blockhash now the coin has landed.
5. Wallet signs nftTransaction in a second prompt.
6. POST /v1/launch/:launchId/nft/submit { signedNftTransaction }.
7. The NFT must be signed after the coin lands. Wallets append a balance assertion computed when they sign, and the launch spends SOL afterwards, so an NFT signed first asserts a balance that no longer holds and the mint reverts.

### Buy or sell

*Trading a coin launched through this API, on the bonding curve or after graduation.*

1. GET /v1/trade/quote?mint=&side=buy|sell&amount=&slippageBps= for the "you receive" figure. Advisory only.
2. POST /v1/trade/buy { mint, user, solLamports } or /v1/trade/sell { mint, user, tokenAmount } — returns { txId, transaction }.
3. Wallet signs `transaction`. Sign only.
4. POST /v1/tx/submit { txId, signedTransaction }.
5. GET /v1/tx/:txId every ~1.5 s until confirmed, failed or expired.
6. No sign-in is needed for any of this.

### Transfer or claim

*Moving tokens or SOL the wallet already holds, or collecting creator fees.*

1. POST /v1/transfer/token { mint, user, amount }, /v1/transfer/sol { user, destination, lamports }, or /v1/creator/claim { user }.
2. The token transfer takes no destination: it goes to the project custodian and a request cannot override it.
3. Each returns { txId, transaction }. Wallet signs, then POST /v1/tx/submit and poll GET /v1/tx/:txId, as for trades.

### Read the registry

*Listing or displaying coins. No signing involved.*

1. GET /v1/config once at start-up and cache it for the session.
2. GET /v1/tokens?limit=&cursor= for the list, paginating until nextCursor is null.
3. GET /v1/tokens/stream to receive new launches as they confirm, rather than polling the list.
4. GET /v1/tokens/:mint for one coin, then its /trades, /candles and /holders for the detail view.
5. Live price, market cap and curve progress: GET /v1/market?mints= for a page of coins in one call, or read them from Solana RPC in the client using the addresses on the Token record and the reserve figures in config.pump.

## If you hit an error, look here first

Each of these has been made against this API by a real caller, and none is diagnosable from the message
alone. The error text is quoted exactly, so you can match it against the one you have.

### `Request body size did not match Content-Length`

**Cause.** A FormData body sent with `content-type: application/json`, usually by a shared fetch wrapper that sets JSON headers on every request. The launch endpoints are multipart, so the body is routed to the wrong parser.

**Fix.** Do not set content-type when the body is FormData — the browser must set it, because only it knows the multipart boundary it generated. Setting `multipart/form-data` by hand is also wrong: it omits the boundary. Branch on whether the body is a FormData instance rather than listing paths, because every other endpoint does take JSON.

### `creator is not a valid Solana address`

**Cause.** The field holds a non-empty string that is not base58. Every one of these produces it: an address shortened for display ("AUHB…xdTA"), a wallet object stringified to "[object Object]", the literal "undefined" or "null", or an address with surrounding whitespace.

**Fix.** Send `wallet.publicKey.toBase58()` raw — unformatted, untrimmed, not the value you render in the UI.

### `signedTransaction is not a valid serialized transaction`

**Cause.** The signed transaction encoded as anything other than base64. Base58 is the usual one, because that is the habit from signatures; hex, a JSON-stringified byte array, a comma-joined array, the signature string, and the message without the transaction all fail the same way.

**Fix.** Send `Buffer.from(signed.serialize()).toString("base64")`, or in a browser without Buffer, `btoa(String.fromCharCode(...signed.serialize()))`. Note that `/v1/tx/submit` and `/v1/launch/submit` do take JSON — only the prepare endpoints are multipart.

### `FORBIDDEN — This API serves approved sites only (on every single call)`

**Cause.** Either the origin was never registered, or the frontend is hosted on the API’s own domain. Browsers send no Origin header on same-origin requests, and the gate refuses anything without a recognised one.

**Fix.** Host the site on its own hostname and have the operator register that origin. When testing with curl, omit `-H "Origin: …"` — passing it by hand is not what a browser does and hides this entirely.

### `VERIFY_FAILED — the wallet altered the transaction`

**Cause.** Something changed the transaction between prepare and submit. The API compares the returned bytes against what it built and allows only ComputeBudget and Lighthouse guard instructions to be added.

**Fix.** Sign the transaction exactly as returned. Do not rebuild it, re-sign the message, change the fee payer, or add instructions. Do not retry blindly on this error — report it.

### `Custom: 6400 from L2TExMFKdjpN9kozasaurPirfHy9P8sbXoAN1qA3S95, on a Genesis NFT`

**Cause.** The NFT was signed before the coin landed. A wallet appends its own balance assertion computed when it signs; the launch then spends SOL, so the assertion no longer holds and reverts the mint.

**Fix.** Ignore the `nftTransaction` that `prepare-and-mint` returns. Submit the coin, poll until it is confirmed, then call `/v1/launch/:launchId/nft/prepare` and sign the transaction that gives you, in a second prompt.

### `BLOCKHASH_EXPIRED (410)`

**Cause.** More than about 60 seconds passed between preparing and submitting, which is easy to exceed while a user reads a wallet prompt.

**Fix.** For a launch, POST `/v1/launch/:launchId/refresh`, have the wallet sign the new transaction, and submit that. For a trade, build it again. Do not resubmit the old bytes.

### `The coin list renders empty although /v1/tokens returns 200 with the coin in it`

**Cause.** The list endpoint returns an object, not an array. Calling .map on the response itself yields nothing, silently. The single-coin endpoint does return a bare record, which is why a coin page can work while the list stays empty.

**Fix.** Destructure it: `const { items, nextCursor } = await res.json()`, then map over `items`. Page by passing `nextCursor` back as `?cursor=` until it is null.

### `VALIDATION on a field you did send, in a multipart request`

**Cause.** The file part came before it. The parser only exposes fields that precede the file, so anything after `image` is invisible.

**Fix.** Append the image last, after every text field.

### `VALIDATION — must be a positive integer string`

**Cause.** An amount sent as a JSON number. Lamports and token base units exceed 2^53, so a number would silently lose precision.

**Fix.** Send amounts as strings and parse them with BigInt, never Number.

## Endpoints

`access` is `public` (no origin needed), `origin` (a registered origin), or `sign-in` (also a wallet session
token). `limit` is requests per minute per client IP, on top of the global ceiling.

### Service

Configure a client and check whether launching is currently possible.

#### `GET /v1/health`

Liveness, network, and whether launches are available.

- access: `origin`
- limit: global ceiling only
- returns: `{ ok, network, project, mintPoolFree, launchesAvailable, lookupTables }`

#### `GET /v1/config`

Everything a client needs to configure itself. Fetch once at start-up.

- access: `origin`
- limit: global ceiling only
- returns: `{ network, project, apiBaseUrl, programs, pump, limits, publicEndpoints, features, explorer }`

#### `GET /v1/stats`

Counts of what this project has launched. No market numbers on purpose.

- access: `origin`
- limit: global ceiling only
- returns: `{ coins, coinsLast24h, genesisMinted, creators, lastLaunchAt }`

### Wallet sign-in

A free, gas-less proof of wallet ownership. Required before launching; never for trading or transfers.

#### `POST /v1/auth/challenge`

Issue a text message for the wallet to sign. Valid 5 minutes.

- access: `origin`
- limit: 30/min
- takes: `{ wallet }`
- returns: `{ message, expiresAt }`

#### `POST /v1/auth/verify`

Exchange the signed message for a 24 h session token.

- access: `origin`
- limit: 30/min
- takes: `{ wallet, message, signature }`
- returns: `{ token, wallet, expiresAt }`

### Launching

Create a real pump.fun coin with a mandatory dev buy. Every variant returns an unsigned transaction.

#### `POST /v1/launch/prepare`

Build a launch transaction. multipart/form-data, file part last.

- access: `session`
- limit: 10/min
- takes: `multipart: name, symbol, description?, website?, twitter?, telegram?, category? (memes|narrative|tech|other; required where the project says so), creator, devBuyLamports, image`
- returns: `{ launchId, mint, transaction, lastValidBlockHeight, expiresAt, quote, metadataUri, imageUri, nftAsset, delegatedTo }`

#### `POST /v1/launch/prepare-and-mint`

As prepare, plus a Metaplex 1-of-1 Genesis NFT of the coin, signed in a second prompt after the coin lands.

- access: `session`
- limit: 10/min
- takes: `same multipart form as prepare`
- returns: `as prepare, plus nftTransaction and nftAsset`

#### `POST /v1/launch/prepare-and-mint-manlets`

As prepare-and-mint, except the NFT shows one of ten fixed characters on black instead of the coin’s avatar. Takes an extra `colour` form field.

- access: `session`
- limit: 10/min
- takes: `same multipart form as prepare, plus colour — the slug (red, orange, gold, lime-green, turquoise, electric-blue, purple, pink, silver, graphite), the colour name (Red … Charcoal) or the class (Sprinter, Streaker, Farmer, Market Maker, Collector, Trader, Scout, Socialite, All-Rounder, Whale) all resolve to the same character`
- returns: `as prepare-and-mint`

#### `POST /v1/launch/prepare-and-delegate`

As prepare, but the dev buy is forwarded to the project custodian inside the same transaction. One signature; the creator never holds the tokens.

- access: `session`
- limit: 10/min
- takes: `same multipart form as prepare`
- returns: `as prepare, with delegatedTo naming the custodian`

#### `POST /v1/launch/:launchId/refresh`

Rebuild a launch on a fresh blockhash after BLOCKHASH_EXPIRED. Max 5 per launch.

- access: `session`
- limit: 20/min
- returns: `the same shape as the call that prepared it`

#### `POST /v1/launch/submit`

Broadcast the wallet-signed launch. Idempotent.

- access: `origin`
- limit: 60/min
- takes: `{ launchId, signedTransaction }`
- returns: `{ launchId, signature, nftSignature, status }`

#### `POST /v1/launch/cosign`

Co-sign for wallets that can only signAndSendTransaction. The wallet broadcasts, not the API.

- access: `session`
- limit: 60/min
- takes: `{ launchId, transaction }`
- returns: `{ launchId, transaction }`

#### `POST /v1/launch/:launchId/nft/prepare`

Build the Genesis NFT transaction once the coin has confirmed.

- access: `session`
- limit: 20/min
- returns: `{ launchId, nftAsset, nftTransaction, lastValidBlockHeight }`

#### `POST /v1/launch/:launchId/nft/submit`

Broadcast the wallet-signed NFT transaction.

- access: `origin`
- limit: 60/min
- takes: `{ signedNftTransaction }`
- returns: `{ launchId, nftAsset, nftSignature, status }`

#### `GET /v1/launch/:launchId`

Launch status: prepared, submitted, cosigned, confirmed, failed or expired.

- access: `origin`
- limit: global ceiling only
- returns: `{ launchId, status, mint, signature, error, token, nft }`

### Registry

The coins launched through this project. Scoped: another project’s coin reads as NOT_FOUND.

#### `GET /v1/tokens`

Coins launched here, newest first. Cursor-paginated; filterable by creator.

- access: `origin`
- limit: global ceiling only
- takes: `?limit=1-100&cursor=&creator=`
- returns: `{ items, nextCursor }`

#### `GET /v1/tokens/:mint`

One coin: metadata, links, serial, category and memory number, dev buy, and its on-chain addresses.

- access: `origin`
- limit: global ceiling only
- returns: `Token record`

#### `GET /v1/tokens/stream`

Server-Sent Events feed of newly confirmed launches. Replays from ?since=<event id>.

- access: `origin`
- limit: 30/min
- returns: `text/event-stream: ready | token | reset`

#### `GET /v1/tokens/:mint/trades`

pump.fun trade history, cached ~5 s and shared between callers.

- access: `origin`
- limit: 120/min
- takes: `?limit=1-100&cursor=`
- returns: `{ trades, nextCursor, source }`

#### `GET /v1/tokens/:mint/candles`

pump.fun OHLCV, cached ~20 s. Intervals 1m to 1d, in USD or SOL.

- access: `origin`
- limit: 120/min
- takes: `?interval=&limit=1-1000&currency=usd|sol`
- returns: `{ candles, interval, currency, source }`

#### `GET /v1/tokens/:mint/holders`

Top holders with labels. The one server-assisted on-chain read.

- access: `origin`
- limit: 120/min
- returns: `{ mint, updatedAt, totalSupply, holders }`

### Market data

Live numbers read through the server’s RPC, for clients that cannot read Solana RPC themselves. Browsers may still read the chain directly.

#### `GET /v1/market`

Price, market cap, curve progress and 24 h volume/change for up to 60 coins in one call. Cached ~10 s; 24 h figures ~60 s.

- access: `origin`
- limit: 120/min
- takes: `?mints=<comma-separated, max 60>`
- returns: `{ updatedAt, solUsd, items: { <mint>: { mint, venue, complete, priceSol, priceUsd, marketCapSol, marketCapUsd, progressPct, solInCurve, volume24hUsd, change24hPct } } }`

#### `GET /v1/balances/:wallet`

A wallet’s SOL balance and, with ?mint=, its balance of one coin launched here. Integer strings.

- access: `origin`
- limit: 120/min
- takes: `?mint=`
- returns: `{ wallet, lamports, mint, tokenAmount }`

### Boosts

Hourly voting on memories (coins in memes, narrative or tech). One rocket per wallet per coin per UTC hour; each hour’s top three are pinned for the next three hours.

#### `POST /v1/votes`

Rocket a memory in the current hour. 409 INVALID_STATE on a second rocket for the same coin this hour.

- access: `session`
- limit: 60/min
- takes: `{ mint }`
- returns: `{ ok, mint, cycleId, rockets }`

#### `GET /v1/votes/board`

Current standings, pinned winners, 24 closed hours of history and all-time totals. Adds `mine` with a valid session.

- access: `origin`
- limit: 120/min
- returns: `{ now, cycle, standings, pinned, history, totals, mine? }`

### Trading and creator fees

Build → wallet signs → submit → poll. Works on the bonding curve and after graduation to PumpSwap. No sign-in.

#### `GET /v1/trade/quote`

Read-only pricing for "you receive ≈" displays.

- access: `origin`
- limit: 120/min
- takes: `?mint=&side=buy|sell&amount=&slippageBps=10-5000`
- returns: `BuyQuote | SellQuote`

#### `POST /v1/trade/buy`

Build a buy transaction.

- access: `origin`
- limit: 60/min
- takes: `{ mint, user, solLamports, slippageBps? }`
- returns: `{ txId, transaction, lastValidBlockHeight, quote }`

#### `POST /v1/trade/sell`

Build a sell transaction.

- access: `origin`
- limit: 60/min
- takes: `{ mint, user, tokenAmount, slippageBps? }`
- returns: `{ txId, transaction, lastValidBlockHeight, quote }`

#### `POST /v1/creator/claim`

Build a transaction collecting the wallet’s pump.fun creator fees.

- access: `origin`
- limit: 30/min
- takes: `{ user }`
- returns: `{ txId, transaction, lastValidBlockHeight, claimableLamports, bondingCurveLamports, ammLamports }`

#### `GET /v1/creators/:wallet`

Creator vault addresses, for reading claimable balances in the browser.

- access: `origin`
- limit: global ceiling only
- returns: `{ creator, bondingCurveCreatorVault, ammCreatorVaultAuthority, ammCreatorVaultAta }`

### Transfers

Move funds the wallet already holds. Same build → sign → submit shape; no sign-in.

#### `POST /v1/transfer/token`

Send a coin launched here to the project’s stake custodian. Takes no destination — it comes from project config and cannot be overridden.

- access: `origin`
- limit: 60/min
- takes: `{ mint, user, amount }`
- returns: `{ txId, transaction, lastValidBlockHeight, destination, amount }`

#### `POST /v1/transfer/sol`

Plain SOL transfer to any on-curve address.

- access: `origin`
- limit: 60/min
- takes: `{ user, destination, lamports }`
- returns: `{ txId, transaction, lastValidBlockHeight }`

### Transaction lifecycle

Every built transaction — trade, claim or transfer — is submitted and polled through these two.

#### `POST /v1/tx/submit`

Broadcast a wallet-signed transaction. Idempotent.

- access: `origin`
- limit: 60/min
- takes: `{ txId, signedTransaction }`
- returns: `{ txId, signature, status }`

#### `GET /v1/tx/:txId`

Transaction status: built, submitted, confirmed, failed or expired.

- access: `origin`
- limit: global ceiling only
- returns: `{ txId, kind, status, signature, error }`

### Echo buys

Read-only view of the echo-buy service: for a watched coin, each unique buyer and the wallet that bought the coin for them.

#### `GET /api/track05usd/:coinCA`

Landed echo buys of one watched coin, oldest first. 404 for a coin that was never watched. 1 s cache with ETag.

- access: `origin`
- limit: 600/min
- returns: `[{ buyerWallet, spbWallet, txHash }]`

#### `GET /api/hodlers/:coinCA/village`

Hodler Village of one SPB coin: its metrics (residents, holders, named Hodlers, market cap, 24 h volume and transactions), the landmarks they open with their targets and opening times, and every resident, oldest first. 1 s cache with ETag; 404 for a coin that was never watched.

- access: `origin`
- limit: 600/min
- returns: `{ coin: { mint, progressPct, complete, graduatedAt, milestones: { <key>: ISO|null }, metrics: { residents, holding, named, marketCapUsd, volume24hUsd, txns24h }, milestoneList: [{ key, name, metric, target, art, icon, blurb, openedAt }] }, residents: [{ no, buyer, hodler, tx, name, holding, founder }] }`

#### `POST /api/hodlers/:coinCA/name`

Name the signed-in wallet's own Hodler (2-20 characters; links and slurs refused). 404 when that wallet has no Hodler in the village.

- access: `session`
- limit: 10/min
- takes: `{ name }`
- returns: `{ name }`

#### `GET /api/hodlers/:coinCA/chat/:room`

A building's chat room (a landmark key, or townhall which is always open): the last 60 messages, or with ?after=<message id> only newer ones (at most 100), oldest first. open is false until the landmark has opened; 404 for an unknown room.

- access: `origin`
- limit: 600/min
- returns: `{ room, open, messages: [{ id, wallet, name, no, hodler, text, at }] }`

#### `POST /api/hodlers/:coinCA/chat/:room`

Post in a building chat as the signed-in resident (1-200 characters; links and slurs refused; one message per wallet per 3 s). 403 for a non-resident, 409 while the building is closed.

- access: `session`
- limit: 20/min
- takes: `{ text }`
- returns: `{ id, wallet, name, no, hodler, text, at }`

#### `POST /api/hodlers/:coinCA/walk`

Walk the village: send your position about every 500 ms, get everyone else walking there (nearest first, at most 120; gone after 8 s of silence). An optional session walks as your Hodler and lets residents say something (1-120 characters, one per 3 s, shown 6 s); a refused say comes back as sayError and never fails the call. In memory: resets on API restart.

- access: `origin`
- limit: 600/min
- takes: `{ id (8-40 of A-Za-z0-9_-), x, y (cells from the plaza, -200..200), dir (n|s|e|w|ne|nw|se|sw|null), say? } + optional Authorization: Bearer`
- returns: `{ walkers: [{ id, x, y, dir, hodler, name, no, guest, say, sayAt }], sayError? }`

### Public

Readable without a registered origin, because the callers that need them send none.

#### `GET /`

This catalogue, as a page.

- access: `public`
- limit: global ceiling only

#### `GET /v1/catalogue`

This catalogue, as JSON.

- access: `public`
- limit: global ceiling only

#### `GET /llms.txt`

Plain-text pointer to the catalogue, for agents that look for one.

- access: `public`
- limit: global ceiling only

#### `GET /llms-full.txt`

This whole catalogue as Markdown — sequences, endpoints, limits and error codes. Also what GET / returns to a caller whose Accept header prefers text over HTML.

- access: `public`
- limit: global ceiling only

#### `GET /nft/:mint`

A coin’s NFT metadata document, for explorers and marketplaces.

- access: `public`
- limit: global ceiling only

#### `GET /sdk/launchpad-client.js`

Dependency-free ES module wrapping every endpoint, with wallet handling and flows.

- access: `public`
- limit: global ceiling only

#### `GET /sdk/launchpad-chart.js`

Candlestick chart module built on the client above.

- access: `public`
- limit: global ceiling only

#### `GET /sdk/cmp-client.js`

Pre-rename alias. 301 to /sdk/launchpad-client.js.

- access: `public`
- limit: global ceiling only

#### `GET /sdk/cmp-chart.js`

Pre-rename alias. 301 to /sdk/launchpad-chart.js.

- access: `public`
- limit: global ceiling only

## Limits

- 300 requests per minute per client IP overall, on top of the per-endpoint limits listed above. IPv6 is grouped per /64.
- A reverse proxy adds a 20 requests/second burst ceiling, also per IP.
- A server-side caller with a valid project key that relays requests for many visitors may send the visitor’s address as x-client-ip; limits are then counted per visitor. Without a valid key the header is ignored.
- Sign-in messages are valid 5 minutes; session tokens 24 hours.
- A prepared launch reserves its mint for 10 minutes, with at most 5 refreshes and 5 cosigns. Signing takes about 60 seconds before the blockhash expires.
- Per wallet: 3 launches awaiting signature, 5 transactions in flight.
- Name 32 bytes, ticker 10 bytes, description 1000 characters, image 5 MB. Dev buy must be greater than zero. Slippage 10–5000 bps, default 500.

## Error codes

Every non-2xx response is `{ "error": { "code", "message", "details"? } }`. The `code` is stable and safe to
branch on; the `message` is safe to show a user.

| Code | Meaning |
| --- | --- |
| `VALIDATION` | 400 — bad input; details.field names it |
| `UNAUTHORIZED` | 401 — sign-in missing, expired, or the wallet does not match |
| `FORBIDDEN` | 403 — the request did not come from a registered origin |
| `VERIFY_FAILED` | 400 — the wallet altered the transaction; do not retry |
| `INSUFFICIENT_FUNDS` | 422 — not enough SOL or tokens; details carries the figures |
| `SIMULATION_FAILED` | 422 — would fail on-chain; details.reason "slippage" means the price moved |
| `SEND_FAILED` | 422 — the network rejected it |
| `BLOCKHASH_EXPIRED` | 410 — signed too late; refresh or rebuild |
| `NOT_FOUND` | 404 — unknown coin, launch or transaction |
| `NOT_TRADABLE` | 404 — that coin was not launched on this launchpad |
| `NOTHING_TO_CLAIM` | 409 — creator fees below 20,000 lamports |
| `INVALID_STATE` | 409 — the launch expired or was already handled |
| `MINT_POOL_EMPTY` | 503 — no vanity addresses available |
| `IPFS_UPLOAD_FAILED` | 502 — metadata upload failed |
| `UPSTREAM_UNAVAILABLE` | 503 — RPC or pump.fun temporarily unavailable |
| `RATE_LIMITED` | 429 — too many requests, or too many pending launches for this wallet |
| `INTERNAL` | 500 — unexpected |

## Client module

A dependency-free ES module wrapping every endpoint is served at `https://api.qqqqqqqqqqqqqqqqq.xyz/sdk/launchpad-client.js`.
It handles Wallet Standard discovery, sign-in and token caching, the whole build-sign-submit-poll sequence for
each flow, and reads live market data from Solana RPC in the browser.

```js
import { createLaunchpadClient } from 'https://api.qqqqqqqqqqqqqqqqq.xyz/sdk/launchpad-client.js';
const client = createLaunchpadClient({ apiBaseUrl: 'https://api.qqqqqqqqqqqqqqqqq.xyz' });
await client.ready();
```
