> For the complete documentation index, see [llms.txt](https://xai-foundation.gitbook.io/xai-network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xai-foundation.gitbook.io/xai-network/kn/staking-explained/staking-pool-guide/generating-rewards.md).

# Generating Rewards

1. A network Challenge occurs typically every hour, and the referee determines which Sentry Keys can participate.
2. The referee smart contract assesses the esXAI staked in each pool to determine the pool's tier.
3. The referee applies the tier’s reward odds to every Sentry Key in the pool to determine if they can participate and generate Network Rewards from an assertion.
4. The Node Operator will submit an assertion for any keys that are able to generate Network Rewards.
5. For example, if the referee determines that three keys in your pool have participated in the Challenge:
   1. The pool owner submits assertions for these keys in a single transaction.
   2. The rewards for these assertions become claimable after 1 hour.
   3. The pool owner claims the esXAI rewards for the winning keys in a single transaction.
6. Bulk claiming results in gas savings, especially with more Sentry Keys in the pool, as unlimited Sentry Keys can be in a single bulk claim transaction.
7. The claimed esXAI rewards are distributed among the pool owner, Sentry Key stakers, and esXAI stakers based on the pool's reward breakdown and the terms and conditions of the Pool (as determined by the Pool Owner).
8. Stakers can claim their portion of the rewards from the pools listing on <https://app.xai.games/staking>
   1. Stakers can let their rewards accrue to claim at more gas optimal times


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://xai-foundation.gitbook.io/xai-network/kn/staking-explained/staking-pool-guide/generating-rewards.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
