# Betting Contracts

![](/files/LmBCXCUrMYbK0k0hBnye)

## What Are They ?

Businesses can use betting contracts to process their users' bets. Bets can be organized around various events in sports, politics, geopolitics, stock market, forex, etc.

The Stock Market channel for instance has deployed a betting contract through which users can bet on the closing price of various stocks in multiple stock markets around the world.

The code behind betting contracts is open source and available on the scan of the blockchains they are deployed in. Users can read and verify how winnings are computed and distributed.

The goal of these contracts is to provide a safer, fairer and more transparent alternative to the incumbents in the betting space. The owners of betting contracts can even use identity tokens to put requirements in place that prevent minors or people suffering from betting addictions from participating. You can read more about how identity tokens work on the page below:

{% content-ref url="/pages/ohKIbIRhRgNxkYuIXyE7" %}
[Creating Data](/products/ssi/creating-data.md)
{% endcontent-ref %}

Betting contracts can also be used to run quizzes that rewards the ones with the right answer which might be an interesting way to incentivize those who take courses online.

Basically, you can use betting contracts to handle any activity where you ask a question, users pick their answers, you reveal the correct answer and reward the winners. Any activity you can frame in that model can be run through a betting contract.

## Deploying A Betting Contract

Here is a step-by-step to guide to deploying your first betting contract:

* Go to the [Bettings page](https://payswap.org/bettings) and click on the button to deploy a betting contract

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

* Fill in the form that pops up and validate the transaction

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

* You should be able to view your betting contract by clicking the **Mine Only** button which will only list your betting contracts. Reload your page if you do not see your betting contract

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

Congratulations! You have successfully deployed your own betting contract. You can now start betting events through that contract.

[Get further support from the community here.](https://paychat.payswap.org/#/room/%23paycom%3Amatrix.org?via=matrix.org)


---

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