> 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="https://3278441264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK7NYkl2DSHlCdZJi0l3U%2Fuploads%2F8LymD9hp7aGQU0U0Ym9P%2Fimage.png?alt=media&amp;token=78de6aa3-b6b0-47af-8d00-d680ff9a1fc0" 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="https://3278441264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK7NYkl2DSHlCdZJi0l3U%2Fuploads%2F1CHCtFlV3KLeQPTsZv3u%2Fimage.png?alt=media&amp;token=ba1890ef-0105-4293-9f9c-ea4425150b36" 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="https://3278441264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK7NYkl2DSHlCdZJi0l3U%2Fuploads%2FTGpeGVUtuBNkJokEWW2B%2Fimage.png?alt=media&amp;token=31ca4db2-287e-42cb-92e6-91ec59c3f9e8" 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="https://3278441264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK7NYkl2DSHlCdZJi0l3U%2Fuploads%2F89JiDop5lxf3FLPE7LBF%2Fimage.png?alt=media&amp;token=edd47e92-b852-46f3-a9b0-b83c9b69444b" 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="https://3278441264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK7NYkl2DSHlCdZJi0l3U%2Fuploads%2Fj95x5a6bMNEGos5DqPZ5%2Fimage.png?alt=media&amp;token=3e3adf33-0c3b-40b7-a74f-2e51fa9ef19b" 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="https://3278441264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK7NYkl2DSHlCdZJi0l3U%2Fuploads%2FyYPbaYqTLoAYpqCoGU1y%2Fimage.png?alt=media&amp;token=94077a10-516d-4e5f-ad2a-29893b104129" 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="https://3278441264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK7NYkl2DSHlCdZJi0l3U%2Fuploads%2Fkb6y3uI2ROylsXc9fQbe%2Fimage.png?alt=media&amp;token=598b615f-b01a-46d2-b767-36765fd59363" alt=""><figcaption></figcaption></figure></div>
7. После создания токена появляется возможность задеплоить смарт-контракт в тестовую сеть Testnet бесплатно или в основную сеть Mainnet, оплатив комиссию сервиса.

   <div align="left"><figure><img src="https://3278441264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK7NYkl2DSHlCdZJi0l3U%2Fuploads%2Fvi9rzDstWQWF8I2qOUDI%2Fimage.png?alt=media&amp;token=155cb796-b8d0-4b57-86f7-c1a733cd690d" alt=""><figcaption></figcaption></figure></div>
