API reference
API overview
Public JSON over HTTPS. No key, no sign-up; every number on the site comes from these endpoints.
Base URL and format#
All endpoints live under https://diamond.church/api. Responses are JSON. SOL amounts are numbers in SOL, token amounts are whole tokens, times are ISO 8601 strings in UTC, and addresses are base58.
bash
curl https://diamond.church/api/statsEndpoints#
| Method and path | Returns |
|---|---|
| GET /api/config | PublicConfig: name, cluster, CA, live parameters, platform wallets |
| GET /api/stats | GlobalStats: site-wide totals |
| GET /api/rewards | RewardToken[]: the reward catalog with prices |
| GET /api/coins | CoinSummary[] |
| GET /api/coins/:mint | CoinDetail |
| GET /api/payouts | PayoutRow[], newest first |
| GET /api/rounds | RoundRow[], newest first |
| GET /api/wallet/:address | WalletRewards |
| GET /api/airdrops | AirdropState |
| GET /api/burns | BurnRow[] |
| GET /api/launch/quote | LaunchQuote |
| POST /api/launch/metadata | { uri, image } |
| POST /api/launch/build | { txs: string[] } |
| POST /api/launch/confirm | CoinDetail |
| GET /api/stream | Server-sent events (LiveEvent) |
Limits#
Requests are rate limited per IP; a limited request returns HTTP 429 with code: "rate_limited". Launch endpoints have tighter limits than reads. See Errors.