API reference
API overview
Every number on the site comes from a public JSON endpoint on the same origin. No key, no sign-up.
Base URL#
text
https://blastball.christmas/apiResponses are JSON with cache-control: no-store. Amounts in SOL are numbers in SOL (not lamports); token amounts are whole tokens; times are ISO 8601 strings in UTC; wallets and signatures are base58.
Endpoints#
| Path | What it returns |
|---|---|
GET /api/game | Current round, live pot and its split, top 10, people online, rules |
GET /api/rounds | Closed rounds, newest first, with their top three payouts |
GET /api/rounds/:id | One round: standings, places and every payout |
GET /api/leaderboard | Hits and winnings across rounds (24h, 7d, all time) |
GET /api/player/:wallet | One wallet's totals and its rounds |
GET /api/hits | Latest counted hits |
GET /api/payouts | Latest prizes that landed on-chain |
GET /api/stats | Site-wide totals |
GET /api/house | $BlastBall: pot wallet, pot, fees, gifts, buybacks |
GET /api/config | Public settings and the round rules |
GET /api/price | SOL price and its source |
GET /api/stream | Live events (server-sent events) |
GET /api/health | Database and worker status |
Errors#
Errors use the HTTP status and a body with a readable message and a stable code:
json
{
"error": "Unknown round.",
"code": "not_found"
}| Status | Code | When |
|---|---|---|
| 400 | bad_address | The wallet in the path is not a Solana address |
| 404 | not_found | No such round |
| 429 | rate_limited | Too many requests from your IP; wait a minute |
| 500 | server_error | Something broke on our side; try again |
Rate limits#
Read endpoints are not rate limited but please poll gently: the game status changes every few seconds, rounds once per bell. Endpoints that build a transaction for your wallet (gifts) allow 30 requests per minute per IP.