# Claiming Rewards

The contract includes a function that allows a user to claim a reward for a successful assertion. This function checks if the challenge is closed for submissions. If this condition is met and the assertion is valid for a payout, a reward is sent to the user.


---

# 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/about-xai/sentry-keys-explained/referee-smart-contract/claiming-rewards.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.
