API is https://actions.gabox.fun/v1.
Find a machine
List the machines and followpage.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.
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.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 istickets / 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.
offer.prizes, not your own maths, as the amount. See Prizes and odds.
Follow a draw
AskGET /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, readGET /v1/machines/{machine}/pulls every few seconds. A pull’s payout is null until its draw settles, so show it as “waiting” first.
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.
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: