# Lootboxes

Loot boxes are an exciting feature in the NFT and gaming space. They're essentially virtual mystery boxes containing NFT items. These items can vary in rarity and value, adding an element of surprise and excitement. Here's a step-by-step guide on how to create a loot box.

#### Step-by-Step Guide to Creating Loot Boxes

1. **Provide Loot Box Details:** Input the necessary details for your loot box. This usually includes providing an image for the key and the box itself, along with naming and describing them. The names and descriptions for the key and box are identical. Once done, you will be navigated to your lootbox page.<br>

   <figure><img src="/files/V2IFIgCoEgslcMtNzlck" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/IueeOHwjMoo5Rgrg4wLa" alt=""><figcaption></figcaption></figure>
2. **Add Items to Your Loot Box:** By clicking the "Add item" button, you can include desired items from your collection to your loot box.<br>

   <figure><img src="/files/6MkkP3YO97RqhrL9xYFc" alt=""><figcaption></figcaption></figure>
3. **Specify Item Details:** After adding each item, provide its details, specifically the supply quantity and its rarity level.<br>

   <figure><img src="/files/W52HSxzVdhaxKz5EZZMv" alt=""><figcaption></figcaption></figure>
4. **Transfer NFT to Loot Box Contract:** The final step involves approving the transfer and transferring the NFT to the Lootbox contract. Completing this will successfully add your item to your loot box
5. **Launch Your Loot Box:** Once the loot box is created, the next step is to launch it. This involves providing details about the quantity of keys available, the supported payment currency, and the price for each key.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.altura.com/altura-documentation/getting-started/lootboxes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
