API reference
Coins and stats
Site totals, the reward catalog, the coin list and one coin in full.
Config#
GET/api/config
Public settings: brand, cluster, site URL, X and Telegram links, the $DIAMOND CA as published (empty until launch), every launch and round parameter, and the treasury, burn, airdrop and escrow wallet addresses.
bash
curl https://diamond.church/api/configStats#
GET/api/stats
ts
interface GlobalStats {
coins: number; liveCoins: number;
paidUsd: number; paid24hUsd: number; payments: number;
walletsPaid: number; // unique wallets paid at least once
feesSol: number; burnSol: number; burnedTokens: number;
airdroppedSol: number;
volume24hSol: number; trades24h: number;
lastPayoutAt: string | null; solUsd: number | null;
byToken: { mint: string; symbol: string; amount: number; usd: number }[];
}Reward catalog#
GET/api/rewards
Every token a coin can pay in, with a current USD price where one is available, including $DIAMOND and graduated DIAMOND coins.
ts
interface RewardToken {
mint: string; symbol: string; name: string;
kind: "sol" | "stable" | "stock" | "crypto" | "house" | "coin";
decimals: number; program: "native" | "spl" | "t22";
image: string | null; priceUsd: number | null;
coins: number; // live coins paying in it
}List coins#
GET/api/coins?tab=&sort=&pays=&q=&creator=&limit=
| Parameter | Values |
|---|---|
| tab | all · new · trending · final (close to graduation) · graduated |
| sort | new · mcap · paid · volume · holders |
| pays | any · stock · crypto · sol · creator (creator-mode coins) |
| q | name, ticker or mint |
| creator | only coins launched by this address |
| limit | number of rows |
$DIAMOND, when launched, is always listed first.
bash
curl "https://diamond.church/api/coins?tab=trending&pays=stock"ts
interface CoinSummary {
mint: string; name: string; symbol: string; image: string | null;
status: "launching" | "live" | "paused";
graduated: boolean;
progress: number | null; // bonding-curve progress 0–1 (1 once graduated)
house: boolean; // the platform token ($DIAMOND)
feeMode: "holders" | "creator";
rewards: string[]; // reward token mints, rotation order
nextReward: string | null; // mint the next paying round uses
payoutWallet: string; creator: string;
priceUsd: number | null; marketCapUsd: number | null; volume24hUsd: number | null;
holders: number | null; eligibleHolders: number | null; // last snapshot
paidUsd: number; paid24hUsd: number; payments: number;
potSol: number; potUsd: number | null; // holder pot right now
burnSol: number; // SOL sent to the $DIAMOND buy & burn
feesSol: number; // creator fees received, all time
nextRoundAt: string; // ISO time of the next round boundary
createdAt: string;
}One coin#
GET/api/coins/:mint404 when the coin is unknown
bash
curl https://diamond.church/api/coins/<mint>ts
interface CoinDetail extends CoinSummary {
description: string | null; twitter: string | null; telegram: string | null; website: string | null;
decimals: number; tokenProgram: string;
launchSignature: string | null; launchSlot: number | null;
launchBlockBuyers: number;
split: { holdersBps: number; burnBps: number; platformBps: number };
platformSol: number; reserveSol: number;
lastError: string | null;
snapshotAt: string | null;
topHolders: { wallet: string; balance: number; pct: number; eligible: boolean;
reason: string | null }[]; // creator | launch block | pool | program | platform | excluded | rank
rotation: { mint: string; symbol: string; amount: number; usd: number }[];
rounds: RoundRow[];
payouts: PayoutRow[];
fees: { signature: string; sol: number; kind: string; // fee-share | boost | gas
holdersSol: number; burnSol: number; platformSol: number; at: string }[];
}