# Creating Assertion Hash and Checking Payout

The contract has a function that creates a hash of the Sentry Key ID, challenge ID, challengerSignedHash from the challenge, and the successor state root. It then checks if the hash is below a certain threshold, which is calculated based on the total number of Sentry Licenses that have been minted. If the hash is below the threshold, the assertion is valid for a payout.

The Referee contract ensures the integrity of the Xai network by validating assertions and rewarding successful ones, thereby incentivizing Sentry Nodes to monitor the network accurately and diligently.


---

# 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://xai-foundation.gitbook.io/xai-network/en/about-xai/sentry-keys-explained/referee-smart-contract/creating-assertion-hash-and-checking-payout.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.
