# How to create lottery

{% embed url="<https://www.youtube.com/watch?v=R94VwUFEQDk>" %}

## You have selected the type of smart contract (Lottery)

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

1. In the "Lottery Names" field, you must enter the name of the lottery <mark style="color:red;">(The name of the lottery must be in English!)</mark> The name of the lottery can be anything and will not conflict with the same names.

   <div align="left"><figure><img src="/files/YQF7hXVGWLGjx590KzpT" alt=""><figcaption></figcaption></figure></div>
2. In the "Price for 1 ticket" field, you must enter the price for 1 ticket to be issued.

   <div align="left"><figure><img src="/files/kTDivop5PWgKnCqnFDgg" alt=""><figcaption></figcaption></figure></div>
3. In the "Tickets amount" field, enter the number of tickets <mark style="color:red;">(Must be an integer!)</mark> to be issued. <mark style="color:red;">(Minimum quantity 10 tickets)</mark>.

   <div align="left"><figure><img src="/files/a7Hxmqw8jjO4WxCNds6W" alt=""><figcaption></figcaption></figure></div>
4. In the fields "Start time" and "End time" you must specify the period during which the lottery will be held.

   <div align="left"><figure><img src="/files/VBoMnHPuq4mUJr6qJjMn" alt=""><figcaption></figcaption></figure></div>
5. In the "Owner Fee" field, you must enter the percentage for the creator of the lottery from the amount of ticket purchases.

   <div align="left"><figure><img src="/files/h5XJCQvZuO0ms4ycsVlo" alt=""><figcaption></figcaption></figure></div>
6. In the "Lottery Type" section, you must select one of the three proposed types of lottery.

   <div align="left"><figure><img src="/files/NYOdF3ScnBPebWA2tcMp" alt=""><figcaption></figcaption></figure></div>
7. После создания токена появляется возможность задеплоить смарт-контракт в тестовую сеть Testnet бесплатно или в основную сеть Mainnet, оплатив комиссию сервиса.

   <div align="left"><figure><img src="/files/HZeRbGlK9PrVGmoQG5Ue" alt=""><figcaption></figcaption></figure></div>


---

# 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.cryptodo.app/how-to-use-cryptodo/how-to-create-lottery.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.
