API reference
Launch
The three calls behind the launch form. The transactions are built by the server and signed by the creator's wallet.
Quote#
Tokens the initial buy would get, its share of supply against the cap, the copy fee for the ticker (0 when free) and the cost breakdown.
curl "https://diamond.church/api/launch/quote?buySol=0.3&symbol=GEM"interface LaunchQuote {
buySol: number; tokens: number; pctSupply: number;
ok: boolean; reason: string | null;
copyFeeSol: number;
copyOf: { mint: string; symbol: string; listedAt: string } | null;
costs: { launchFeeSol: number; gasReserveSol: number; rentSol: number; totalSol: number };
}Metadata#
Fields: image (file), name, symbol, description, twitter, telegram, website. Pins the image and the metadata JSON and returns { uri, image }. An empty website becomes the site URL.
Build#
{
"creator": "<wallet>",
"mint": "<new mint public key>",
"name": "Gem", "symbol": "GEM", "uri": "<metadata uri>",
"buySol": 0.3,
"rewards": ["<reward mint>", "..."],
"feeMode": "holders"
}Returns { txs: string[] }: base64 transactions, in send order. The browser generates the mint keypair, asks the wallet to sign all of them at once, adds the mint's signature to the first, and sends them one after the other.
Confirm#
{ "mint": "<mint>", "signatures": ["<create sig>", "<sharing sig>"] }Runs the verification and, when it passes, lists the coin and returns its CoinDetail. Safe to repeat.