> For the complete documentation index, see [llms.txt](https://docs.cryptodo.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cryptodo.app/how-to-use-cryptodo/how-to-create-lottery.md).

# 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>
