# How it Works?

Players purchase tickets by selecting the first one (1) to eight (8) hexadecimal characters ( 0 - 9 , a - f ) of any future Bitcoin block hash - referred to as a "**Hash Prediction**". Once the block has been mined and confirmed on the Bitcoin blockchain, any ticket with matching characters will receive a payout based on the number of correct characters and the selected payout structure.

### Step by Step Guide to Purchasing Tickets:

{% stepper %}
{% step %}

### Select Ticket Type

**1) Single**&#x20;

One Hash Prediction for a single upcoming Bitcoin block.

**2) Multi Block**&#x20;

A single Hash Prediction applied across multiple future Bitcoin blocks.

**3) Multi Hash**&#x20;

Multiple Hash Predictions for a single upcoming Bitcoin block.

**4) Multi Multi**&#x20;

A set of multiple Hash Predictions across multiple future Bitcoin blocks.

{% endstep %}

{% step %}

### Select Target Block(s)

Choose one or more future block heights to apply your Hash Prediction(s) to.

You may only select blocks after the current block height (i.e., current block + 2 or higher). Block heights update in real-time on the platform to reflect the current state of the Bitcoin blockchain.

{% endstep %}

{% step %}

### Select the Number of Characters

Decide how many hexadecimal characters (0–9, a–f) you want to predict:

* **Minimum:** 1 character
* **Maximum:** 8 characters

The longer the prediction, the higher the potential payout, but the lower the probability of a match.

{% endstep %}

{% step %}

### Choose a Game Mode - Jackpot or Tiered

#### Jackpot - High Risk, High Reward

Requires all characters in your Hash Prediction to match the start of the block hash.&#x20;

#### Tiered - Multiple Potential Payout Levels

Pays out based on how many consecutive characters match, starting from the first character.

{% endstep %}

{% step %}

### Enter Hash Prediction(s)

Input your desired Hash Prediction(s), using only valid hexadecimal characters (0–9, a–f):

* Each prediction will need to match your selected character length.
* If using a Multi Hash or Multi Multi ticket, enter multiple predictions.

Tip: For a tickets with a large number of Hash Predictions use the generate button to automatically generate random hexadecimal strings. You can then edit and customize them as needed.

{% endstep %}

{% step %}

### Set Amount Per Ticket

Decide how many Sats you want to stake per ticket:

* The amount you enter will be the cost per Hash Prediction per block and will be multiplied by the payout multiplier for each winning Hash Prediction.
* Higher stakes mean bigger payouts.
* **Minimum Amount:** 100 Sats per order
* **Maximum Amount:** Dependent on the available balance of the Bankroll Liquidity Pool

{% endstep %}

{% step %}

### Review and Confirm&#x20;

Double check all ticket inputs and confirm your purchase.&#x20;

Once submitted, your ticket(s) will be locked in and assigned a unique ID.

Tickets cannot be edited or cancelled after submission.
{% endstep %}
{% endstepper %}


---

# 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://crypta.gitbook.io/crypta/bitcoin-lottery/howitworks.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.
