Skip to main content
Every recipe uses only live routes and needs no key. API is https://actions.gabox.fun/v1.

Find a machine

List the machines and follow page.nextCursor. Then read one machine for its packs, prize tiers and vault. Read account first: a launch machine (Pool) and a fan coin machine (TokenMachine) have different fields.
A machine’s page on the website is https://gabox.fun/<address>, built from the machine’s address field. Every machine route takes that address too. A coin’s mint finds only the coin’s launch machine. To list every machine on one coin, add ?mint=<mint> to the list route. If a user pastes a page link, its last part is the machine’s address.

Show a machine card

A card usually shows the coin, the price of the cheapest pack, the top prize and the packs opened.
Only a launch machine has offer. On a TokenMachine, each entry of packQuotes is one pack price in USDC base units and the coins it buys now. The API sends the coin’s decimals in tokenDecimals. It does not send the quote token’s decimals. USDC has 6 and SOL has 9. For another quote token, read its mint’s decimals from Solana, or show offer.solAmount in SOL.

Show the odds

The chance of each prize row is tickets / 65536. On a launch machine, the live prize amounts are in offer.prizes, in the same order as tiers. A TokenMachine has no offer, so show its chances and multipliers only. Skip rows with 0 tickets.
A multiplier can pay less when the vault is low, so show offer.prizes, not your own maths, as the amount. See Prizes and odds.

Follow a draw

Ask GET /v1/draws/{address} about once a second until settled is true. Then prizeTier is the prize row and amount the coins paid. See Draws for the full loop.

Show live activity

For a feed of one machine’s packs, read GET /v1/machines/{machine}/pulls every few seconds. A pull’s payout is null until its draw settles, so show it as “waiting” first.
For the biggest wins on every machine, read GET /v1/pulls/top. For totals, read GET /v1/stats. If many people use your app at once, read on your server and share the answer with every visitor. Answers may be cached for 5 seconds anyway. See Limits and errors.

Check a seed lock

seedLocked says whether the creator can take the seed back. true means nothing can withdraw it, and a launch machine is always true. On a TokenMachine, false means the seed is the creator’s deposit, and null means the index has not read it yet. See Seed and jackpot.

Check Machine recharge

On a launch machine, recharge is null when Machine recharge is off. Otherwise, recharge.machineBps is the machine’s share of the creator trading fee, and recharge.coinsAdded is the coins it has bought for the prize pool so far.
The recharge object lists every field.

Explain a machine with an AI

GET /v1/machines/{machine}/brief.md answers one machine as Markdown, ready for an AI. To give your agent the whole API, install the Gabox skill:

Launch a coin, open a machine on a coin, open a pack, claim fees

These calls are Preview. Until they are live, send your users to gabox.fun for these steps.