# Lottery Contract

In CryptoDo, you can create a smart contract and a web interface for conducting a fair lottery on the blockchain.

With the help of CryptoDo's web 3 lottery constructor, you can hold prize draws for your community, increase audience activity and earn commissions from ticket sales.

You can create several types of lotteries and flexibly configure them :

<table data-view="cards"><thead><tr><th data-card-target data-type="content-ref"></th><th data-hidden></th><th data-hidden></th><th data-hidden></th></tr></thead><tbody><tr><td><a href="/pages/zHd1HID55W002SaNXjII">/pages/zHd1HID55W002SaNXjII</a></td><td></td><td></td><td></td></tr><tr><td><a href="/pages/xJAzT5XLZyyuQxcexGXi">/pages/xJAzT5XLZyyuQxcexGXi</a></td><td></td><td></td><td></td></tr><tr><td><a href="/pages/ZF3JrlWqg65zXGM6toS5">/pages/ZF3JrlWqg65zXGM6toS5</a></td><td></td><td></td><td></td></tr></tbody></table>

{% content-ref url="/pages/E0mN4qKAT7Y24kJN2PFH" %}
[How to create lottery](/how-to-use-cryptodo/how-to-create-lottery.md)
{% endcontent-ref %}


---

# 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/smart-contracts/lottery-contract.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.
