DIAMOND
Launch

API reference

Wallets and airdrops

One wallet's rewards, and the $DIAMOND airdrop state.

Wallet rewards#

GET/api/wallet/:address
bash
curl https://diamond.church/api/wallet/<address>
ts
interface WalletRewards {
  address: string;
  totalUsd: number; airdropSol: number;
  byToken: { mint: string; symbol: string; amount: number; usd: number }[];
  payments: PayoutRow[];
  holding: { mint: string; symbol: string; image: string | null; balance: number;
             eligible: boolean; reason: string | null;
             nextRoundAt: string; nextReward: string | null }[];
  created: CoinSummary[];
}

Airdrops#

GET/api/airdrops
ts
interface AirdropState {
  houseMint: string | null; houseSymbol: string;
  threshold: number; intervalMinutes: number; nextAt: string;
  fundSol: number; reserveSol: number;
  eligible: number | null; snapshotAt: string | null;
  paidSol: number;
  rounds: { id: number; sol: number; recipients: number; eligible: number;
            eligibleSupply: number; status: "paying" | "complete" | "carried" | "failed";
            note: string | null; at: string }[];
  wallet: string;
}
Docs