> ## Documentation Index
> Fetch the complete documentation index at: https://tokenterminal.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# xai_v1_arbitrum

> Tables in tt-contracts.xai_v1_arbitrum

## Tables

### Referee\_BatchRewardsClaimed\_event

Batch reward claim events from Xai Network's Referee contract on Arbitrum, recording challenge-based reward distributions with challenge IDs, reward amounts, and key counts. Used to track validator/referee reward claims and payout activity in Xai's gaming-focused Layer 3 protocol.

<Accordion title="Columns">
  | Column             | Type        | Description                                                                                                                                                                      |
  | ------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `block_timestamp`  | `TIMESTAMP` | Timestamp when the block was produced. UTC timezone, millisecond precision.                                                                                                      |
  | `block_number`     | `INT64`     | Sequential identifier for the block in which the event or transaction was recorded. Integer value indicating the block's position in the blockchain.                             |
  | `transaction_hash` | `STRING`    | Unique identifier for the transaction. 66-character hex string including 0x prefix.                                                                                              |
  | `log_index`        | `INT64`     | Position of the event within the block's transaction logs. Zero-indexed integer representing the sequential order of log emission.                                               |
  | `address`          | `STRING`    | Contract address that emitted the event. Hex-encoded, 0x-prefixed, 42-character string.                                                                                          |
  | `removed`          | `BOOL`      | Boolean flag indicating whether the event log was removed from the blockchain due to a chain reorganization.                                                                     |
  | `in_challengeId`   | `STRING`    | Identifier for the XAI Referee challenge associated with this batch reward claim event. Stored as a numeric string representing the challenge number in the XAI gaming protocol. |
  | `in_totalReward`   | `STRING`    | Total reward amount distributed in this batch claim event for the specified challenge. Stored as a string-encoded integer representing the token amount in smallest units (wei). |
  | `in_keysLength`    | `STRING`    | Number of keys claimed in this batch rewards event from the Xai Referee contract. Stored as a string-encoded integer, commonly '0' when no keys are claimed in the transaction.  |
</Accordion>

<Accordion title="Sample Data">
  | address                                    | removed | log\_index | block\_number | in\_keysLength | in\_challengeId | in\_totalReward | block\_timestamp         | transaction\_hash                                                  |
  | ------------------------------------------ | ------- | ---------- | ------------- | -------------- | --------------- | --------------- | ------------------------ | ------------------------------------------------------------------ |
  | 0xfd41041180571c5d371bea3d9550e55653671198 | false   | 23         | 215387617     | 0              | 4059            | 0               | 2024-05-27T00:01:02.000Z | 0xc714b105c51c9c2c7ae0c3be93deb28f6a265468c1106e4c3564cac4eb971ecc |
  | 0xfd41041180571c5d371bea3d9550e55653671198 | false   | 14         | 215387536     | 0              | 4059            | 0               | 2024-05-27T00:00:42.000Z | 0x6b0e25dce398e3d608b91bb6d5c4f1771de1a0c0c24f8f31b7449bbefe0ce834 |
  | 0xfd41041180571c5d371bea3d9550e55653671198 | false   | 2          | 215387640     | 0              | 4059            | 0               | 2024-05-27T00:01:08.000Z | 0xd596ff036af321779b2474b4b61fd6749cf693869a38ed4b0d9c202eab19dfd6 |
</Accordion>

<Accordion title="Example Query">
  **Query with partition filter**

  ```sql theme={null}
  SELECT *
  FROM `tt-contracts.xai_v1_arbitrum.Referee_BatchRewardsClaimed_event`
  WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
  LIMIT 100
  ```
</Accordion>

***

### Referee\_RewardsClaimed\_event

Reward claim events from the Xai network's Referee contract on Arbitrum, tracking challenge-based reward distributions with claim amounts and challenge identifiers. Used for analyzing validator incentive mechanics and reward distribution patterns in the Xai gaming blockchain.

<Accordion title="Columns">
  | Column             | Type        | Description                                                                                                                                                                                                     |
  | ------------------ | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `block_timestamp`  | `TIMESTAMP` | Timestamp when the block was produced. UTC timezone, millisecond precision.                                                                                                                                     |
  | `block_number`     | `INT64`     | Sequential identifier for the block in which the event or transaction was recorded. Integer value indicating the block's position in the blockchain.                                                            |
  | `transaction_hash` | `STRING`    | Unique identifier for the transaction. 66-character hex string including 0x prefix.                                                                                                                             |
  | `log_index`        | `INT64`     | Position of the event within the block's transaction logs. Zero-indexed integer representing the sequential order of log emission.                                                                              |
  | `address`          | `STRING`    | Contract address that emitted the event. Hex-encoded, 0x-prefixed, 42-character string.                                                                                                                         |
  | `removed`          | `BOOL`      | Boolean flag indicating whether the event log was removed from the blockchain due to a chain reorganization.                                                                                                    |
  | `in_challengeId`   | `STRING`    | Identifier for the specific challenge associated with the claimed rewards. Values are sequential numeric identifiers (e.g., 309, 510, 605) representing distinct challenge instances in the Xai Referee system. |
  | `in_amount`        | `STRING`    | Input amount for the swap, transaction, or operation. Numeric string representation of token quantity in smallest denomination.                                                                                 |
</Accordion>

<Accordion title="Sample Data">
  | address                                    | removed | in\_amount            | log\_index | block\_number | in\_challengeId | block\_timestamp         | transaction\_hash                                                  |
  | ------------------------------------------ | ------- | --------------------- | ---------- | ------------- | --------------- | ------------------------ | ------------------------------------------------------------------ |
  | 0xfd41041180571c5d371bea3d9550e55653671198 | false   | 294393093053154231502 | 62         | 170840619     | 309             | 2024-01-15T22:57:54.000Z | 0xe4ec547f2635818bb87bc63b4665b974a683fb9e135e469715a7d4865534ec98 |
  | 0xfd41041180571c5d371bea3d9550e55653671198 | false   | 220527189705271897052 | 154        | 170838905     | 510             | 2024-01-15T22:50:10.000Z | 0xc8911fa49860b6dead102411ddbd4b7f692b1a205ec20443fdfd31629f145a96 |
  | 0xfd41041180571c5d371bea3d9550e55653671198 | false   | 212789393575262356805 | 53         | 170838139     | 605             | 2024-01-15T22:46:37.000Z | 0xedbb67012ce2f722b6cf8e658e297e7b7cb2cf705c4cfea7197ef59a08b402b9 |
</Accordion>

<Accordion title="Example Query">
  **Query with partition filter**

  ```sql theme={null}
  SELECT *
  FROM `tt-contracts.xai_v1_arbitrum.Referee_RewardsClaimed_event`
  WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
  LIMIT 100
  ```
</Accordion>

***
