> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gabox.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Opening a pack

> What you pay, what you sign and what happens next

A pack has a fixed USDC price. You open one pack per purchase, and each pack gets its own draw.

## Pick a pack

Gabox offers a fixed range of pack prices, from small to large. The app shows the current prices on every machine. The largest pack unlocks only after the coin graduates. All other packs are always available.

The price includes the 0.50% pack fee and the market's trading fee. It does not include network fees, account rent or the randomness fee. You pay those in SOL.

The price buys coins on the market. So the number of coins in a pack changes with the coin's price. When the coin trades higher, a pack at the same price buys fewer coins.

## How you pay

You always pay in USDC.

* **USDC machine.** The program takes the price straight from your USDC account.
* **Any other machine** (SOL, a stock token or another Solana token). The same transaction first swaps your USDC into the machine's quote token. Then it buys the pack with that token. Quote tokens that the purchase did not use go back to you. On a SOL machine they come back as SOL.

The swap is a separate trade with its own price and fees.

## What you sign

| Limit | What it protects |
| - | - |
| `max_quote_budget` | The most quote tokens the pack may spend, pack fee included. |
| `min_net_tokens` | The fewest coins the prize pool must receive for your pack. |
| `min_maximum` | The smallest top prize you accept when you buy. If the prize pool changed before your purchase landed and the top prize fell below this, the purchase fails. |
| `max_native_debit` | The most SOL the program may spend inside the purchase: the randomness fee and some account rent. |

Your first pack on a machine also creates a small account for your [Mega Pack](https://docs.gabox.fun/mega-pack.md) rewards. You pay its rent once.

Some accounts are created before the program runs, for example the draw account. Their rent and the network fee are outside `max_native_debit`. The app shows them before you sign. If the market moved and a limit no longer holds, the transaction fails and nothing is bought.

## The purchase

The market sends the bought coins straight to the prize pool. Gabox records the draw, reserves your pack's own coins and asks MagicBlock for randomness. All of this happens in one transaction. Other packs opened at the same time do not lower your offer.

```mermaid theme={null}
sequenceDiagram
 participant B as Buyer
 participant G as Gabox
 participant M as Market
 participant V as VRF
 B->>G: Buy a pack
 G->>M: Buy coins
 M->>G: Coins to prize pool
 G->>V: Request
 V-->>G: Random bytes
 G-->>B: Prize
```

## The draw

Your draw keeps its own copy of the prize table, your pack coins and the free coins in the prize pool. No one can change which prize row you land on. MagicBlock usually answers in a few seconds. The prize then goes to your coin account.

The prize is capped by what the prize pool can pay when your draw settles. If another win settles first, a large prize can pay less than the amount you saw. A win never pays less than your pack's own coins, and the smallest prize is never cut.

If your coin account cannot receive the prize, the result is still fixed. The prize waits in the prize pool as owed. See [If the draw is late](https://docs.gabox.fun/if-the-draw-is-late.md).

## The last pack on the curve

The curve stops at its target. The pack that reaches the target buys only what is left on the curve, so it may spend less than its price and buy fewer coins. The unused part stays with you. After that, the app pauses purchases until Meteora finishes the move to DAMM v2.

## Referrals

You may name a referrer on a purchase if you do not have one yet. The first valid referrer is bound to your wallet for ever. You pay the same price either way. See [Referrals and earnings](https://docs.gabox.fun/referrals-and-earnings.md).

## Sending a pack to someone else

You can also pay for a pack and let another wallet open it. See [Gift packs](https://docs.gabox.fun/gift-packs.md).

Read next: [What a pack costs](https://docs.gabox.fun/what-a-pack-costs.md) and [Prizes and odds](https://docs.gabox.fun/prizes-and-odds.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.