Skip to main content
The calls on this page are not served yet. Do not call them. Gabox documents them now so you can plan your app. Their shape can still change before they go live. Until then, users take these steps on gabox.fun.
Each build call answers a transaction for your user to sign. The API never signs, and it never holds a key. Your app’s wallet signs the transaction and sends it to Solana. Every transaction spends real money on mainnet, so show your user what it does and what it costs before they sign. The build calls will need an API key. A key’s limit for builds is 20 a minute, with a burst of 5. In the samples below, post, get, signAndSend and sleep stand for a few lines of your own: a JSON fetch, your wallet kit’s sign-and-send, and a timer.

Launch a machine

Builds the launch transaction. One transaction makes the new coin and opens its machine. The creator’s wallet and the new mint both sign it, and the creator sends it. See Launch a machine.
address
required
The wallet that launches the coin and pays the launch cost. It earns the creator fee, less the machine’s share when rechargeBps is set.
address
required
The public key of a new keypair that your app makes. Its secret key never leaves your app. It signs beside the creator.
string
required
The coin’s name, up to 32 bytes.
string
required
The ticker: capital letters and digits, up to 10.
https URL
required
The coin’s image. Gabox stores it with the coin’s metadata, and the transaction pays that cost back.
string
required
What packs are priced in: SOL, USDC, or the mint of another enabled quote token.
number
Extra starting coins for the prize vault, paid in the quote token you picked. For example, 250 means 250 USDC on a USDC machine. It buys the coin at launch, on top of the small seed every machine gets. Leave it out for none.
integer
Machine recharge: the machine’s share of the coin’s creator trading fee, in basis points from 1 to 10,000. 10,000 is all of it. That share buys the coin into the prize pool. Only the launch can turn it on. Later the share can go up, never down. The creator claims the rest. Leave it out to keep the whole fee.
Sample answer:

Open a machine on a coin

Builds the transaction that opens a fan coin machine on a coin that already exists, such as BONK. The creator signs it, and the seed comes from their own coins. Nothing is bought.
address
required
The wallet that opens the machine. It pays the cost, puts in the seed and earns 1.20% of every pack, or 1.50% when the buyer has no referrer.
address
required
The coin: any classic SPL Token coin, or a Token-2022 coin that is not paused and has no transfer hook program or transfer fee. Not USDC.
number
required
The starting coins for the prize vault, in whole coins. They come from the creator’s wallet.
boolean
true, the default, keeps the seed in the prize pool for good. false makes it the creator’s deposit: they can take back what is left of it later, but only while no pack is opening and no prize waits for a claim.
Sample answer:

Open a pack

Builds one pack’s buy transaction for the buyer to sign. The answer names the draw that the pack opens, so you can follow it.
address
required
The wallet that pays, signs and gets the prize.
address
required
The machine’s address.
integer
required
The pack’s size in whole USDC. It must be one of the sizes in /v1/program.
Sample answer:
The buyer pays in USDC. If the market moved and a signed limit no longer holds, the program refuses the purchase and nothing is bought. See What you sign.

Creator fees

A launch machine’s creator earns part of every trade of its coin: 0.96% on the curve, and about 0.72% after graduation. A coin launched before 29 October 2026 keeps 0.495% and about 0.25%. With Machine recharge, the machine takes its share of that fee first. A fan coin machine’s creator earns 1.20% of every pack on it, or 1.50% when the buyer has no referrer. The creator can claim these fees any time. See Referrals and earnings.

Read claimable fees

What a creator can claim now: the trading fees of each coin they launched, their part of each Machine recharge fee, and their share of the packs on each machine they opened.
address
required
The creator’s wallet.
Sample answer:
Each creator row is one coin. Each recharge row is one machine with Machine recharge, and its claimable is the creator’s part of that machine’s fee. claimable is in the base units of quoteMint.

Claim fees

Builds one transaction that claims every creator fee a wallet can claim, Machine recharge parts included, for that wallet to sign.
address
required
The creator’s wallet. It signs the claim.
Sample answer:

Selling coins

The API has no sell call. A winner sells the coin with a normal swap, for example on Jupiter. See Keep or sell.