# Bets with alphabet-encoding

![](/files/LmBCXCUrMYbK0k0hBnye)

These betting contracts only accept alphabet answers from users. The underlying smart contract converts the answers given by the users from letters into numbers since the smart contract only understands numbers.

Let's take a sports betting event where you are trying to get users to bet on the name of the player that will score the next goal. Since there are too many options, it is probably a better idea to make this betting event alphabet-encoding and let users provide the name of the player they think will score, instead of having to list out all possible options which can be over 20 different options.

Here is a step-by-step guide to creating such a betting event:

* Go to your betting contract. You can read the guide on how to deploy your betting contract on the page below:

{% content-ref url="/pages/HG4DmWanwLPqcTwyVpBn" %}
[Betting Contracts](/products/betting.md)
{% endcontent-ref %}

* In your contract's panel, click on the Control Panel button and then on the Update Parameters button. We need to set our betting contract's ticket size to 27 which is the number of letters in the alphabet

<div><figure><img src="/files/VTRS0k006ZcDjuW7eoH1" alt=""><figcaption></figcaption></figure> <figure><img src="/files/HmUKGRtGZatdkVLRz9Pc" alt=""><figcaption></figcaption></figure></div>

* The next step is to go back to your betting contract's control panel menu and click on the **Create/Update Event** button

<div><figure><img src="/files/MHZGpYNMH1aJkiDq04UG" alt=""><figcaption></figcaption></figure> <figure><img src="/files/S3QHK0A3gtk6m0jGvIA1" alt=""><figcaption></figcaption></figure></div>

* Fill in the fields in the form with the appropriate value and make sure the **Alphabet Encoding** field is set to Yes
* Validate the form and confirm the transaction


---

# 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.payswap.org/products/betting/bets-with-alpha-encoding.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.
