Skip to main content
A machine is a coin’s prize vault and its prize table. The API serves two kinds. Each answer names its kind in account, the program account behind it, as the program’s IDL names it:
  • Pool: the machine that launched its coin, in the same transaction. A coin has at most one.
  • TokenMachine: a fan coin machine, opened on a coin that already exists. A coin can have any number.
Every machine route takes the machine’s own address. A coin’s mint also works there, and it finds the coin’s launch machine. On the website, a machine’s page is https://gabox.fun/<address>.

List machines

Every live machine of both kinds, newest first. This is a list route.
integer
Rows per page, 1 to 50. The default is 20.
string
The nextCursor of the page before. Leave it out for the first page.
address
Only the machines on this coin: its launch machine, and every machine opened on it.
The answer’s data is an array of machine objects. page.nextCursor points to the next page. Read account on each row first, because the two kinds have different fields.

Get one machine

One machine: its kind, packs, prize tiers, vault and seed lock. A launch machine also has its Machine recharge.
address
required
The machine’s own address. A coin’s mint also works: it finds the coin’s launch machine.
A brand-new machine answers 404 not_found until the index sees it. That usually takes a few seconds. A mint finds only its coin’s launch machine. For the machines opened on a coin, use GET /v1/machines?mint=<mint>.

Sample answer: a launch machine

The addresses below are made up. This machine sends 80% of its creator trading fee to its prize pool.

Sample answer: a fan coin machine

Gabox did not launch this coin, so stage is null. The creator did not lock the seed.

The machine object

Every amount is a string of base units. Coin amounts use tokenDecimals. Quote amounts use the decimals of quoteMint.

Names and addresses

Every machine has these fields.

Coin and stage

Every machine has these fields.

Prize table and vault

Every machine has these fields. Only the machine’s creator can add more coins to the vault later. The creator can take back what is left of those coins, under the same rule as an unlocked seed. See After launch.

Activity

Every machine has these fields.

Launch machine fields

Only a launch machine (account: "Pool") has these fields.

Fan coin machine fields

Only a fan coin machine (account: "TokenMachine") has these fields. It has no offer: its pack prices are fixed amounts of USDC, and packQuotes says what each one buys now.

Tier

The app gives the rows names such as Common or Rare. The program knows only multipliers and tickets. See Prizes and odds.

The offer object

Only a launch machine has offer. It is the index’s latest quote for the cheapest open pack. The price moves with the coin’s price. The prize amounts follow from the fixed table, and they change only when the vault limit applies.
The offer is for display. A real purchase signs its own limits for the price, the coins and the top prize. If the market moved, the program refuses the purchase and nothing is bought. See What a pack costs.

The recharge object

Only a launch machine has recharge. It is null when Machine recharge is off. With it on, part or all of the coin’s creator trading fee buys the coin into the machine’s prize pool. Only the launch can turn it on. The fields follow the program’s MachineFeed account. Quote amounts are in base units of the machine’s quoteMint. Coin amounts use tokenDecimals.

AI brief

The machine as one Markdown file, made to paste into an AI assistant. It holds the machine’s kind and stage, its seed, its Machine recharge when it is on, the addresses, the prize tiers, the pack prices, this machine’s API routes and the purchase rules.
address
required
The machine’s own address. A coin’s mint also works: it finds the coin’s launch machine.
The answer’s content type is text/markdown. It has no data and no meta.
The brief names the machine by its address, never by its name. The coin’s name, symbol and image URL appear only in one block at the end. A sentence before that block says it is data and not instructions. Gabox removes hidden and control characters from that text and limits each field to 200 characters.