# Welcome to Xai

<figure><img src="/files/KH3GSCA4YNaGTWfrwjrz" alt=""><figcaption></figcaption></figure>

In this Gitbook, we set out the basic operations and functions of the Xai network.  We do so for informational purposes only and without representation or warranty as to the accuracy of its contents.  For further information, please refer to the Terms of Use and any other legal agreements that may apply to you, including the Privacy Policy, Staking Terms and Sentry Node Software License Agreement as the case may be.  You can find links to these Policies in the footer of our websites.


# Xai Introduction

<figure><img src="/files/xTT66KKKSp8sCdgxDAWW" alt=""><figcaption></figcaption></figure>

Xai leverages Arbitrum technology.


# Xai Blockchain

What is the Xai Blockchain?

The Xai Blockchain, developed by Offchain Labs and overseen by the Xai Foundation, was custom-developed to address the needs of web3 gaming at scale. Tailored specifically for gaming, this blockchain offers traditional gamers an abstracted wallet and account experience, provides developers with increased gas and contract limits, and establishes a fully decentralized ecosystem that fosters trust and transparency for all participants. By leveraging Ethereum's robust security measures, the Xai Blockchain cements its resilience against potential hacks and other vulnerabilities.


# Xai Foundation

What is the Xai Foundation?

The primary objective of the XAI Foundation is to foster the growth of developers and games within the XAI blockchain ecosystem. Its core functions include attracting 3rd party developers and games to the platform, facilitating effective marketing strategies for games deployed to Xai, and offering financing opportunities to web3 game developers. Additionally, the Xai Foundation assumes the pivotal role of serving as the custodian of the blockchain and its associated token, supporting integrity of the platform.


# Xai Token

What is the Xai Token?

The Xai token will serve a dual purpose on the Xai blockchain. Firstly, it will function as the designated gas token, facilitating transactions within the network. Additionally, Xai tokens will be rewarded to validator nodes for their role in validating transactions. Moreover, the Xai token will act as the primary token within the gaming ecosystem, being accepted as payment for games and in-game items.


# Blockchain Gaming


# Current Limitations

The existing challenges within the realm of blockchain gaming encompass a spectrum of issues that span from economic inefficiencies to user experience barriers, significantly affecting the industry's potential for mass and innovation. Let's delve into each of these problems with intricate detail:

***

### Wallet Interaction Hurdles

Arguably one of the most significant obstacles to mainstream blockchain gaming adoption is the requirement for users to interact directly with cryptocurrency wallets. This cumbersome process can deter players who are not familiar with blockchain technology or are hesitant to manage wallets. Ideally, wallets should be seamlessly integrated into the backend of the gaming experience, effectively managed on behalf of the player to streamline onboarding and usage.

***

### Gas Fees

One main concern in regards blockchain gaming is the issue of gas prices. The inefficiencies and congestion on certain blockchain networks lead to steep transaction fees, making even simple in-game actions economically impractical for players. This issue not only drives away potential users but also stifles the growth of blockchain gaming ecosystems. Over the past decade, free-to-play games have grown exponentially because they have reduced friction as much as possible.  Blockchain games will benefit immensely if they can remove friction, including gas fees.

***

### Unstable Blockchains

The stability of blockchain networks is another concern. Blockchains should provide a reliable and secure infrastructure for gaming, but many existing networks suffer from stability, resulting in buggy gameplay and frustrating user experiences.  It's not realistic to expect players to play games that don’t work a notable percentage of the time because the logic is deployed via smart contracts to an unstable blockchain.

***

### Monetary-Focused Game Design

A prevalent pitfall in the current landscape is the overemphasis on monetary rewards within game design. Many blockchain games prioritize aggressive tokenomics over creative and enjoyable gameplay experiences, which can alienate players seeking genuine entertainment value rather than solely financial gains.  The 2021 bull run and subsequent bust proved that an over-reliance on in-game token rewards to drive user engagement is at best short lived.  Game designers should study the trade that takes place in traditional games that are fun to play such as Counterstrike, Eve and Pokemon, and try to leverage blockchains to bring out the best in those styles of experiences.

***

### Complex Game and Economic Design

Some blockchain games feature overly complex game and economic systems, which can prove overwhelming and confusing for new users. This steep learning curve discourages potential players from delving into and participating in these platforms, consequently impeding user acquisition and mass adoption. While crafting an intricate, doctoral-thesis-like exposition of your game world and economy might be intellectually stimulating, it is more likely to deter potential players than attract them. Such an approach is unlikely to contribute to the widespread adoption of blockchain technology.

***

### Lack of Creativity in Blockchain Benefits

Blockchain technology offers a myriad of advantages, such as interoperability and composability. However, there is often a lack of imagination in how these benefits are incorporated into game design. The industry must strive to explore novel and innovative ways to leverage blockchain's capabilities to enhance gameplay and user experiences.

Addressing these multifaceted challenges is pivotal to the evolution and growth of blockchain gaming. By reducing gas costs, improving blockchain stability, fostering creative game design, simplifying complex systems, and maximizing the potential of blockchain technology while minimizing user wallet interactions, the industry can unlock its true potential and deliver captivating gaming experiences to a broader audience, thus ushering in a new era of innovation and accessibility in blockchain gaming.


# The Future of Gaming

In the forthcoming era, all gamers will seamlessly engage with blockchain technology within their gaming experiences, yet they are unlikely to be consciously aware of its integration, including the use of technologies like NFTs. The 2021 cycle of blockchain games has illuminated the immense potential inherent in this technology. However, it has also underscored the substantial challenge presented by the adoption barrier that hinders many individuals from creating and managing their first crypto-wallets. To earnestly facilitate widespread adoption, the industry must undertake substantial initiatives to relegate wallet management and blockchain interaction to the background of gaming and application ecosystems, thus enabling users to effortlessly harness the benefits of blockchain technology without the need to interact with it directly.

Within the gaming context, this transformation entails achieving complete ownership, facilitating open trade, fostering authentic in-game economies, ensuring interoperability, and enabling composability, all while shielded from the complexities of blockchain technology's underlying infrastructure.

Upon achieving this pivotal goal, the industry's most cherished franchises, which captivate billions of individuals worldwide, will seamlessly unlock the advantages of blockchain technology without necessitating convoluted and cumbersome interactions. Such a development holds the extraordinary potential to exponentially amplify the scale of the blockchain industry, potentially increasing its reach and impact by orders of magnitude. The future of gaming, marked by effortless integration and unobtrusive blockchain utilization, promises to revolutionize entertainment on a global scale.


# Gaming Evolved

Blockchain gaming has long been held back by a series of significant challenges, ranging from gas fees to cumbersome wallet interactions. These hurdles have hindered the industry's growth and its ability to provide seamless, enjoyable experiences for players. However, a new network in the blockchain space, Xai, promises to reshape the landscape of blockchain gaming and usher in the much-anticipated era of frictionless, innovative gameplay.

***

### Addressing Gas Fees

One of the most glaring issues in blockchain gaming has been the exorbitant gas fees that users encounter when conducting transactions on certain blockchain networks. Xai has recognized this challenge and is designed with a “gas subsidy” contract. This means games deployed to Xai will have gas fees subsidized by the network.  As a result, players can expect to play games on Xai without the need to pay for gas fees.

***

### Ensuring Blockchain Stability

Blockchain stability is vital for a smooth gaming experience. Xai's architecture prioritizes network reliability, ensuring minimal downtime and congestion. By providing a stable environment, Xai enables seamless gameplay, eliminating the frustrations often associated with more unreliable blockchain networks.

***

### Fostering Creative Game Design

Xai is committed to fostering innovative game design that places the player experience at the forefront. Unlike some blockchain games that prioritize large portfolios of low quality games, Xai empowers developers to create imaginative and entertaining gameplay. By supporting a diverse range of game genres and mechanics, Xai encourages developers to focus on delivering engaging experiences that captivate players, rather than just token incentives.

***

### Streamlining Complex Game Systems

Complex game and economic systems have been a common deterrent for potential users in blockchain gaming. Xai Foundation will support game projects that simplify these systems, making them intuitive and user-friendly. The platform provides tools and resources that help developers reduce friction, ensuring that players can easily grasp the mechanics and enjoy the gameplay.

***

### Unlocking the Potential of Blockchain Technology

Xai understands the transformative power of blockchain technology. It encourages developers to think creatively about how to leverage blockchain's unique advantages, such as interoperability and composability, to enhance gameplay. By offering a flexible and robust infrastructure, Xai empowers developers to explore new ways of incorporating blockchain benefits into their games, ultimately enriching the player experience.

***

### Seamless Wallet Integration

Xai recognizes that the requirement for players to interact directly with cryptocurrency wallets has been a significant barrier to adoption. To address this, Xai partners with Thirdweb to seamlessly integrate wallet management into the backend of the gaming experience. Players no longer need to worry about handling wallets; the platform manages this aspect for them, simplifying onboarding and user interaction.

In summary, Xai directly addresses the key challenges that have hindered the growth of blockchain gaming. With its focus on reducing gas costs, enhancing network stability, promoting creative game design, simplifying complex systems, and maximizing the potential of blockchain technology while minimizing user wallet interactions, Xai is poised to bring forth the forthcoming era of blockchain gaming.

By removing these obstacles and providing a user-centric approach to blockchain gaming, Xai not only makes blockchain gaming more accessible but also offers a platform where developers can truly unleash their creativity. With Xai, the future of blockchain gaming is poised to be an era of innovation, accessibility, and unparalleled player experiences.


# Ex Populus Partnership

Learn more about the Xai <> Ex Populus partnership

Ex Populus stands as a prestigious game development studio, spearheaded by industry veterans from renowned companies such as Pixar, Ubisoft, Activision, Blizzard, and more. With a remarkable team, the company is currently in the process of developing two highly anticipated games, Final Form and LAMOverse. Notably, Ex Populus holds the distinction of being the first developer to deploy its games on the Xai Blockchain, setting the stage for numerous other developers to follow suit.


# Offchain Labs Partnership

Learn more about the Xai <> Offchain Labs partnership

Offchain Labs will develop and service the Xai Blockchain under direction from the Xai Foundation. This means the key development team behind previous Arbitrum blockchains is the same team developing and servicing the Xai blockchain which provides best-in-class technology support.

In addition, Offchain labs will provide ongoing marketing support for Xai network and ecosystem.

Check out the [Xai roadmap](/xai-network/about-xai/open-initiatives/xai-protocol-initiatives) to see where we're going!


# Vanguard League

What is the Vanguard League?

Vanguard, currently a dedicated channel in the Xai Discord community, holds the promise of transforming into a gaming league – aptly named Vanguard – in the foreseeable future. Those with the Vanguard role and those accessing its designated channel position themselves favorably to join the League upon its anticipated launch shortly after the deployment of Final Form to the Xai mainnet.


# FAQ

***

### What wallets will Xai be compatible with?

XAI seamlessly integrates with ETH wallets that are compatible with Arbitrum.

Furthermore, the Xai Foundation is actively engaged in developing an enhanced wallet experience that incorporates abstracted features. This innovative approach aims to utilize email and/or social accounts for wallet authentication and recovery purposes. By leveraging these widely used platforms, we aim to provide a streamlined and user-friendly authentication process for our users.

***

### Is XAI audited?

Xai is built using the Arbitrum Nitro codebase which continuously goes through a rigorous auditing process.

***

### What strategy will you implement to bring non-crypto-natives into your ecosystem?

Xai can be implemented by game developers according to their preferences. However, we highly recommend familiarizing yourself with the perspective of Ex Populus, the pioneering game developer on the Xai chain, regarding the integration of blockchain technology in games. In essence, Ex Populus believes that blockchains should primarily serve as a backend technology, and complex blockchain interactions such as wallet connections and staking should be abstracted away. This approach enables traditional gamers to enjoy the advantages of blockchain without encountering the often high barriers associated with blockchain experiences.

As the Xai Foundation focuses on collaborating with top-tier, experienced game developers, we are confident that the experiences they create will effectively attract both traditional gamers and non-crypto players.

***

### I’m interested in deploying my game or dApp on XAI blockchain. How should I proceed or get in touch?

If you want to get in touch, click "Build With Us" on <https://xai.games/> and submit your inquiry.

If you want to deploy on Xai Mainnet, see details on how to connect to Xai [**here**](broken://pages/4NIJuTQymoCPniD1ZR0S).

***

### Where can I get more technical information about how the Xai Blockchain functions, including consensus?

The Xai Blockchain represents a layer 3 blockchain built upon Arbitrum Nitro. While the core functionality of the chain remains the same, there have been several modifications implemented to enhance the experience for gamers. Notably, these improvements include a gasless experience for players, abstracted wallets to streamline user interactions, and increased contract limits for developers.

Read more about the Xai Protocol [**here**](/xai-network/about-xai/xai-protocol).

For a comprehensive understanding of Arbitrum Nitro, we invite you to refer to the Arbitrum Nitro whitepaper. It provides in-depth details regarding the technical specifications of the underlying technology used to create the Xai Blockchain.

{% embed url="<https://github.com/OffchainLabs/nitro/blob/master/docs/Nitro-whitepaper.pdf>" %}

***

### What is the relationship between Xai Foundation, Ex Populus and Final Form?

The relationship between Xai Foundation, Ex Populus, and Final Form can be likened to the relationship between a game publisher, a game developer, and a specific game title, using the example provided:

Xai Foundation plays a role similar to a game publisher like Activision. It is the overarching organization responsible for overseeing and supporting various projects within the Xai ecosystem. The foundation sets the overall vision, goals, and guidelines for the projects it supports, including Final Form.

Ex Populus, on the other hand, can be compared to a game developer such as Infinity Ward. It is the specific development studio entrusted with creating and bringing Final Form to life. Ex Populus is responsible for designing, programming, and executing the game based on the directives set by the Xai Foundation.

Finally, Final Form itself can be likened to a game title, similar to Call of Duty. It is the specific game being developed by Ex Populus under the guidance and support of the Xai Foundation. Final Form is the result of Ex Populus' development efforts and aligns with the vision and objectives set by the Xai Foundation.

In summary, Xai Foundation acts as the overseeing entity, Ex Populus serves as the dedicated game developer, and Final Form represents the specific game title within the Xai ecosystem.

***

<br>

<br>


# Important Links

Key channels to stay up to date

***

## Xai Links

***

<img src="/files/b7XCKFcgjihxRFno4Q9Z" alt="" data-size="line"> Twitter: <https://twitter.com/xai_games>

<img src="/files/aN3utbEcHyEUzSEcghC7" alt="" data-size="line"> Discord: <https://discord.com/invite/xaigames>

<img src="/files/oemhnl3Js7icYT62f8Ab" alt="" data-size="line"> Instagram: <https://www.instagram.com/xai_games/>

<img src="/files/PQuaLA0T0ORC7BfTVzES" alt="" data-size="line"> Website: <https://xai.games/>

<img src="/files/Ga2A4gZyjhy71xZ4Fr3G" alt="" data-size="line"> Medium: <https://medium.com/@xaifoundation>

***

## Partner Links

***

### Arbitrum (Ecosystem)

<img src="/files/7ZG5Tw7emvQzkWIHHNb9" alt="" data-size="line"> Twitter: <https://twitter.com/Arbitrum>

<img src="/files/PQuaLA0T0ORC7BfTVzES" alt="" data-size="line"> Website: <https://arbitrum.foundation/>

<img src="/files/Ga2A4gZyjhy71xZ4Fr3G" alt="" data-size="line"> Medium: <https://arbitrumfoundation.medium.com/>

***

### Offchain Labs (Technology Partner)

<img src="/files/LGS3Xmdo3cVSClSrQGOU" alt="" data-size="line"> Twitter: <https://twitter.com/OffchainLabs>

<img src="/files/PQuaLA0T0ORC7BfTVzES" alt="" data-size="line"> Website: <https://offchainlabs.com/>

***

### Ex Populus (Game Developer)

<img src="/files/PQuaLA0T0ORC7BfTVzES" alt="" data-size="line"> Website: <https://expopulus.com/>

<img src="/files/Ga2A4gZyjhy71xZ4Fr3G" alt="" data-size="line"> Medium: <https://expopulus.medium.com/>

***

### Final Form (Game)

<img src="/files/LGS3Xmdo3cVSClSrQGOU" alt="" data-size="line"> Twitter: <https://twitter.com/FinalFormXP>

<img src="/files/oemhnl3Js7icYT62f8Ab" alt="" data-size="line"> Instagram: <https://www.instagram.com/finalformxp/>

<img src="/files/PQuaLA0T0ORC7BfTVzES" alt="" data-size="line"> Website: <https://expopulus.com/games/final-form>

***

### LAMO (Game)

<img src="/files/LGS3Xmdo3cVSClSrQGOU" alt="" data-size="line"> LAMO Twitter: <https://twitter.com/LAMO>

<img src="/files/PQuaLA0T0ORC7BfTVzES" alt="" data-size="line"> Website: <https://expopulus.com/games/lamoverse>

***


# Xai Brand Kit

You can download the [Xai Brand Kit here](https://drive.google.com/drive/folders/1B2XJFnSAPAnLSqK6_BwgUeT-J-QPMFaH)


# Xai Protocol

Arbitrum is a layer-2 scaling solution for Ethereum, designed to improve the scalability and reduce the transaction fees of the Ethereum blockchain. Within the Arbitrum ecosystem, there are a variety of chains and technologies at play. &#x20;


# Xai Basic Concepts

### Xai Summary

Xai operates as an Arbitrum Orbit chain, harnessing Anytrust technology to achieve maximum speed and minimal costs. Unlike most Orbit chains that are "self-managed," Xai benefits from direct technical support courtesy of Offchain Labs. This support is not available to other orbit chains and is a crucial component of Xai as a strategic gaming initiative within the Arbitrum ecosystem.

The strategy and growth of Xai's ecosystem are overseen by the Xai Foundation, and Offchain Labs provides technical assistance under the guidance of the Xai Foundation. In a departure from other Orbit chains, Xai boasts a canonical bridge within the Arbitrum ecosystem. Additionally, Xai incorporates unique enhancements, including elevated gas and contract limits, which foster a more favorable environment for ambitious blockchain game development and gameplay. Finally, Xai has its own custom gas fee token, self-named “$XAI”.

***

### Nitro

All Arbitrum chains are built on top of Arbitrum Nitro, which is the foundational technology underneath all chains in the ecosystem.  Nitro runs a fork of [Geth](https://docs.arbitrum.foundation/dao-glossary#geth) and uses WebAssembly as its underlying VM for fraud proofs.  You can read about Nitro in detail [here](https://github.com/OffchainLabs/nitro/blob/master/docs/Nitro-whitepaper.pdf).

***

### Anytrust

An Arbitrum protocol that manages data availability with a permissioned set of parties known as the[ Data Availability Committee (DAC)](https://docs.arbitrum.foundation/dao-glossary#data-availability-committee-dac). This protocol reduces transaction fees by introducing an additional trust assumption for data availability in lieu of Ethereum's[ Trustless](https://docs.arbitrum.foundation/dao-glossary#trustless) data availability mechanism.&#x20;

***

### Arbitrum Layer2s

[Arbitrum Nova](https://docs.arbitrum.foundation/dao-glossary#arbitrum-nova) is an example of an AnyTrust chain;[ Arbitrum One](https://docs.arbitrum.foundation/dao-glossary#arbitrum-one) is an alternative chain that implements the purely trustless (and more L1-gas intensive)[ Arbitrum Rollup Protocol](https://docs.arbitrum.foundation/dao-glossary#arbitrum-rollup-protocol). Both chains are built on top of Nitro.

***

### Orbit Chains

Arbitrum Orbit lets 3rd parties create their own self-managed Arbitrum Rollup and AnyTrust chains. Arbitrum offers Rollup and AnyTrust technology for maximum flexibility in building Orbit chains. As with all chains in the Arbitrum ecosystem, both Arbitrum Rollups and Arbitrum Anytrust Orbit chains are built with Nitro as the underlying technology.

***


# AnyTrust: Revolutionizing Blockchain Infrastructure

Within the framework of AnyTrust, a cutting-edge variant of Arbitrum Nitro technology, Offchain Labs has harnessed innovation to address some of the most pressing challenges in the blockchain space. AnyTrust introduces a fresh perspective by incorporating a mild trust assumption to significantly reduce costs while ensuring robust data availability and security.


# Reducing Costs through Trust Assumptions

At the core of the Arbitrum protocol lies the necessity for all Arbitrum nodes, including validators who verify the chain's correctness and stake on accurate results, to have access to the data of every Layer 2 (L2) transaction within the Arbitrum chain's inbox. Traditionally, an Arbitrum rollup ensures data access by posting data on Layer 1 (L1) Ethereum as calldata, a process incurring substantial Ethereum gas fees, which is the primary cost component in Arbitrum.

AnyTrust, however, introduces a paradigm shift by entrusting an external entity known as the Data Availability Committee (the "Committee") with the storage and on-demand provision of data. The Committee consists of N members, with a trust assumption that at least two members are honest. This trust assumption guarantees data availability for the proper functioning of the rollup protocol, as even if N-1 Committee members promise to provide access to certain data, at least one of the promising entities must be honest, ensuring data availability up to the specified expiration time.


# Keysets for Flexibility

Keysets play a crucial role in AnyTrust's architecture. They specify the public keys of Committee members and the requisite number of signatures to validate a Data Availability Certificate (DACert). Keysets provide the flexibility to change Committee membership and enable Committee members to update their keys as needed.

Each Keyset includes the number of Committee members, the BLS public key for each member, and the number of signatures required. These Keysets are identified by their unique hashes, allowing them to be managed and tracked efficiently.


# Data Availability Certificates (DACerts)

A fundamental concept within AnyTrust is the Data Availability Certificate (DACert). A DACert encompasses the hash of a data block, an expiration time, and proof that N-1 Committee members have signed the (hash, expiration time) pair. This proof includes the hash of the Keyset used for signing, a bitmap indicating which Committee members signed, and a BLS aggregated signature over the BLS12-381 curve, attesting to the signatories.

Due to the 2-of-N trust assumption, a DACert serves as evidence that a block's data will be accessible from at least one honest Committee member until the specified expiration time. This trust assumption underpins the reliability and security of data availability within the AnyTrust framework.


# Dual Data Posting Mechanisms

AnyTrust introduces dual methods for posting data blocks on L1. In addition to the conventional approach of posting full data blocks, it allows for the posting of DACerts, which prove data availability. The L1 inbox contract verifies the validity of DACerts, including reference to the valid Keyset specified within the DACert.

L2 code, responsible for reading data from the inbox, is designed to handle both data formats seamlessly. When encountering a DACert, it performs validity checks, including ensuring the number of signers meets the Keyset requirements, validating the aggregated signature, and verifying that the expiration time extends beyond the current L2 timestamp. Valid DACerts ensure that the data block is accessible and can be utilized by the L2 code.


# Data Availability Servers (DAS)

Committee members operate Data Availability Servers (DAS), which expose two essential APIs:

1. Sequencer API: Meant exclusively for use by the Arbitrum chain's Sequencer, this JSON-RPC interface enables the Sequencer to submit data blocks to the DAS for storage.
2. REST API: Designed for broader accessibility, the RESTful HTTP(S)-based protocol allows data blocks to be retrieved by hash. It is fully cacheable, and deployments may incorporate caching proxies or CDNs to enhance scalability and protect against potential DoS attacks.

Xai, along with Ex Populus and another trusted third party, are proud members of the Data Availability Committee (DAC). This setup allows AnyTrust chains to depend on a specialized DAC, rather than their parent chains, for data availability. The DAC members operate Data Availability Servers (DAS) which are crucial for storing and providing data on-demand.

Below are the public keys for each of the trusted members. These keys can be used to authenticate and verify data signed by the respective entities within the Xai DAS ecosystem:

Xai:&#x20;

`YBHz50DGYvPi02ynzcvcJS9K2nhXWKKSIZdDtXqxxoD3a1s2Fh2he79bMUWZ6M6qEhHM52HZr3l5jLoU4kOTBN+Q87yo0ljgZJYaphdYrHb+jabsPUcR+xdauJKAoKSkjQz8BWC9b2QZ3F7LK+Ro3cpWgkHR9SQlt86mk+eM71AWRl3ybwlRaxwAzYwOd9TRkQYARTY8fjvRmhChCY5lz7FtY0ttPrbJ3Mc2VXy5r0yyIoNFAQjg/jMNoablUOOIZRn+4KGLBQSPKcnl/Nv/0ZNdT563sLPj6mP3qLPlvwAhFpI5vIhSpGdpgJ8n8Ns3uxJyYsPD8qaHQciNLNTzYWGEze40CPMkxEeGRqi8yRoK8iuK5kse/+kqhBOyR3NVJg==`

Ex Populus:&#x20;

`YA+ljLY01rxIncmXWl8bIZduwLObm0LKJIjzdyXjzH5FLN4Y+sUF2zjvF07aUPHOyADiV0y/+ztNO/iTpKLCVUzPzRHTtsukZaE3SUY+IIYU6NvUYdMXfhcKnHH3VU+iVRaSfiK2hw7OCfsge8AQcucdNlgaHSrdvlDmzAIx7jsemsLh8ov5dpywIVkWWZGY6wIwVh2/zUWBMZ4O3V3OYWppRttXZr2ukmwIDU5hQ4qtKRKemHaHSgb18QTuUsowMhkLwx2eW5hMOIYyzLV+NyUTyaQhkD0EtYISRBhHM7RinbP9LQWbLm0dnueZ9O3AkwnbH8w6/h3jkshPZx8hqJ6QH33SwbML1KIvOTEFvgBs7dnj9gbcfMq+17Bu3/YkWw==`

LayerZero: [Public key](https://mainnet.xai.lznodes.com)

`YAX5RGkb2ssH+fb3F+MTg0p+7jF3Le5BT8W/hIR7iSsgHvN2l435zpiSVuqOZNaIaQ/wyuGPur4m2hoiJ1d0J+r/VvbEYQGFCxPe6oi5JzIuAb/QlRA9lT+B1Rup8HKhcAAnSGaIowju3bSosv0LG04H0NlZOSRdJSFOIBA3WyfiK1867Nju+ZqfWF/TLUvR4AnIz2uNkZ7TzuIiA6mQnDHvpKSKsAUvhhAovG8Y8TI0iC1W/LSX1G9VVqFBeI2k1gDX3vzit2yN2PjskBfh5+N6bsIRSECZPRXBqskekNytvRlFveesFOwpXOmiyRPmFAwaYLtsQtSVjz94Ev5rabPQim7x1y9s6AEtV/Q/ggRU7/lTha1SVmMCRdYWWu3Igg==`

Alt Layer: [Public Key](https://rollup-info.altlayer.io/xaiMainnet)

`YAs1+BYgCS8HZ5vbTRT1nbt71wSvrFO3cFKUzWPXaud5V0ErIbWmk4ITu7VxEdDGnAyGmwwfVf2KjZXtsmDHYvXqED6z2fWva8RuY8wTrK5DYRVrPFpZxyFvfkO6j5TXyBPelZmJQzpQlFjx0eMoq4HFloDG1utysJywf3SqUuZKoU074I8pfkz4DSA8gomp6ACZNDBe+1rzvo4jFyzIKbhzveNanj9UWNEBJcrorD+ajWHW/Mrwn0P9RY5MeBt/CQQdCeHvOxTp95aWg2dXYv3iEB3WgH0i06da5gyjit809RYytX2x5I8pbgzugpsieBf8RrKq9FZujcdJJVAVtYJf/hWdptqcwEDdhfZTE2uMOVNJGFnwQ95wYdMT1jQpHA==`

Team Secret: [Public key](https://xai.teamsecret.org/)

`YAKvb8hRiZPIAext4QCk7ngBMmDVkAcQoAqc/BSXtU7/gUDohCF6RI29uc5OlOXIIhifqDOAe+RIDnUrkMJuXKM3f+21bngw9rgjuSoGfaXfqLffFlR3eIQs0QY0XQeG0RKYArEpJ/D/hOt7YPOddAXGn62x4ryWuyqt5mkyyWzfGrncElFsqT6Ni+hAjwjDOABlbMG6rvSrm6uyznjdL233pYO0DTe8S95wgYOcGLP8xSDHlN341schNnHTQyJAcxddkM3BEocKI7ymH9PNp12Ax5Y5SVZEXKkLFAECOwihaMjjH0brzYxdGbaPEEAgDQQbx8bvW09h5AnTEXPrz6oYWFRep/drK92rK9LtDM8NgnjzMLv+AeSd93X1DmZPpA==`

Offchain Labs: [Public key](https://xai-das.offchainlabs.com/)

`YAaEnUny7I1Stgrqdkdn5ob8omB9Id5dh2xtP87ifNORqK2gdi8NLU9Lw4PAXlg/pwPcmuYrAp8OZOPAw02Z5NOUhTKS+udcc7iSEST/tJ6CI1KeH2jXoToqA5FADD4hrwt7qHtu0RK56+zb3voUzyGnjt838DQH0UZSAMmsEZq8k/KCZPeej6IP03lSQOPxSQAAzbxLd3GZKk0V9tYEF9HCHxHjyJHHN7whXqovNDOE/vcw87RZzBlBeP9fOQ8HKRdEvB70DjshSupH/QeU5Znd034y+4NGiMvaCIkoZGb0/tZxHFc9yxp2Uy2HpaVVDxMmZYLSAsWIdsfkAMHKLmQ2ZtqW8Khd9M/uXOaEqTSu6yjJyizIDyXbA3FUuoW8uQ==`

Other Third Party: `YBWhdxIOTQsrGcRQF8bHAEauHwl6F64farjSibsWDNPgplumU8MFRPn6X0jtBBMR1hH/aXso0ftQEI0edQVEB5dJkB4gymdhxq6hFCbYZpxsb8Ipr4lJe05WNmJRX1VeTRIu9WaeVLZlm+RMtvSuzbXXKJyNUnSZ420JaMKyR8Wt9M05nFZ832+eqer4eOtKDBX6gPBzdbUG+WRYdQlvFMkH/Nwo7LyKlHx231VIXKEIeuYXBmMxdtd0++QT7wi7PRN1XLjxGC8osyHYh3rksjBjG6urtgt4b/tVWyNevNaHT5YuO5MBPMMoQFgUqeV6dQiU3v2aXCwnnInTCjEvNbI5PUdwOosJi8JcdY7N1Vpm9jn8Gm89pCdwc8avTGWU5A==`


# Sequencer-Committee Interaction

When the Arbitrum sequencer intends to post a data batch using the Committee, it dispatches the data along with an expiration time to all Committee members in parallel via RPC. Each Committee member stores the data, signs the (hash, expiration time) pair using its BLS key, and returns the signature with a success indicator to the sequencer.

Once sufficient signatures are collected, the Sequencer aggregates them to create a valid DACert for the (hash, expiration time) pair. This DACert is then posted to the L1 inbox contract, making it accessible to the AnyTrust chain software at L2.

In cases where the Sequencer is unable to collect enough signatures within a designated timeframe, it resorts to a "fall back to rollup" strategy by posting the full data directly to the L1 chain. The L2 software is adept at comprehending both data posting formats (via DACert or full data) and handles each format appropriately.

In conclusion, AnyTrust, a groundbreaking innovation within the Offchain Labs ecosystem, represents a pivotal advancement in addressing the challenges of data availability, security, and cost efficiency in blockchain infrastructure. Through a judicious trust assumption and a novel approach to data posting, AnyTrust paves the way for more scalable, accessible, and secure blockchain solutions.


# Security considerations

Xai — is an Arbitrum Orbit chain or L3 - It is purpose built to power web3 games which we believe will play a critical role in the future of gaming. Here are some risks you should know about before using the system:

## Bugs

Offchain Labs’ [implementation](https://github.com/OffchainLabs/nitro) of the Arbitrum protocol (and therefor Xai network) has been carefully constructed, is perpetually being audited by several independent firms, and is continuously reviewed and tested following best engineering practices. That said, there remains a non-zero chance that their codebase contains some undiscovered vulnerabilities that puts user funds at risk. Users should carefully factor this risk into their decision to use Xai, and in deciding how much of their value to entrust into the system.&#x20;

## Scams

Xai, like Ethereum, is permissionless; on both platforms, anybody can deploy any smart contract code they want. Users should treat interacting with contracts on Xai exactly as they do with Ethereum, i.e., they should only do so if they have good reason to trust that the application is secure.

## Reporting Bugs and Scams

Offchain Labs  sponsors a [multi-million dollar bug bounty program](https://immunefi.com/bounty/arbitrum/) to incentivize any party who finds such a critical bug to disclose it responsibly.

In addition, some tools that are available to the Xai community and ecosystem of developers have been developed by third parties under the guidance of the Xai Foundation.&#x20;

For bugs relating to these tools (or if you're not sure who to report a bug to) please reach out via [Xai Discord](https://discord.com/channels/870683519230308372/885301704394952735) / [#support-ticket](https://discord.com/channels/870683519230308372/885301704394952735).


# Xai Governance Voting Guide

This page outlines the steps to using https\://gov.xai.games

{% hint style="info" %}
Vote for Xai ecosystem proposals at <https://gov.xai.games>
{% endhint %}

## Overview

{% hint style="warning" %}
A Delegate Statement **must** be created **before** the voting period commences for your voting power to count towards a proposal outcome
{% endhint %}

Participating in Xai Governance is easy. You can participate directly by voting on proposals, or by delegating your voting power to others. Below is a step by step of how to get setup and participate. You will need to do the following:

* [Connect your wallet](#connect-your-wallet-to-gov.xai.games)
* [Create a delegate statement](#optional-setup-a-delegate-profile)
* [Acquire voting power](#delegate-voting-power-to-yourself) (XAI, esXAI or staked esXAI in your wallet) and delegate to yourself
* Alternatively, you can [delegate your voting power to a Delegate](#delegate-voting-power-to-someone-else)
* A small amount of ArbETH for governance txns (delegating voting power, voting on proposals)

## Setup your voting account

{% hint style="info" %}
You will need to connect each wallet that holds XAI or esXAI for that voting power to be used in proposals. You can delegate each wallet to a single Delegate to make it easier to vote on various proposals if your XAI and esXAI holdings are spread across multiple wallets.
{% endhint %}

### Connect your wallet to gov.xai.games

1. Go to <https://gov.xai.games>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfoDqWOaabGTJD54oLb1CGNdsQdNOYY4d-r2UC4_RaKZqudE7sqLwgSDSiFBb7xElB6dsZ6NPhuz0gEBb6PC39W9t5fzm15nxzZhzl83cr-Jt-MxVFXfr2ief5kQ0qcrf1c1rIB0w?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>

2. Click Connect Wallet (top right corner)

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcX4oVOrl8TlES3DRsrK03qkSuNOTbTS_qbQ1CWh8TkZLQ5tAfCy4wXzl6uV4EuI7jzF5MC__JE8tE7w6YuHF2YxATrxs2VPgHs8vaxoDKoHt65AXzmfTnx_9DMfwb-PFtN6-sVWg?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>

3. Select your preferred wallet provider

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXetmlq3q2lpxQPN9Yfd0DsRo_rBlSA8msfvaBfJRp9EoCQ3mCU98eiimThoo1rquH3HPfNWm1XCz-ENFyBUfp1HZpWvukVOiq3AzLHiWJIGRVxHKMN6amOlamwWTxErZ-o1BB85?key=0ATKgfmFkvdgLlV10xH6wLLq" alt="" width="188"><figcaption></figcaption></figure>

4. Now your wallet is connected to the gov.xai.games site

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfozKfhMM3OEhpS642UhrduxjsaS9N40qTlhtkffh0Z9vecSH1sjXkA59Kd8UtTPxeFs5TBBOr_KHWul9FGhna5zmy6uraWtih2VYpACBtMHl9xDGAa6hYydbUC0Se8zpD6sPVDgA?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Loom of each step is [here](https://www.loom.com/share/b642af1b31d64b108a4ea6e5aad0846d?sid=9f3018f5-b5a9-4512-b1a9-7c6f3fafcbf1)
{% endhint %}

### Check Voting Power

1. Connect your wallet (for guidance see [above](#connect-your-wallet-to-gov.xai.games))
2. Click on your wallet (top right corner)

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeTB0KX1KSLKpMJlHWbw9dRjmlLEdT-oBRu4LzDfdXGWsxVfGieh_A1ZAxk2_ERYi0_jHL4bUpm1_Z075ojORtDd7Rriq_Sp-kmx3QK6FnKNLJSSVbnrFnoJN7EOiyhCPZw9aCT9Q?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>
3. See voting power under “My XAI + esXAI (incl. Staked) balance”&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfFaZpwJ6OyTPXi05DZu_ASxPhG7--P1eCVtKu5zwdclSeUpo3pA_2Mu0m5jRH6hfuvWgY5Se0ntFkjqtYn9smKTmr9LFRHCJiRHD15_NTs0mc3fG1Kaii3_njYmZN9CtrGPZLsWg?key=0ATKgfmFkvdgLlV10xH6wLLq" alt="" width="375"><figcaption></figcaption></figure>

<br>

### Delegate voting power to yourself

{% hint style="info" %}
Delegating voting power and setting up a Delegate statement is required to vote on proposals. However, setting up a Delegate statement is a public profile that anyone can access. The details you provide are optional  that you can update later. See below for more details on setting up a Delegate statement.
{% endhint %}

{% hint style="warning" %}
You will need ArbETH to delegate your voting power (to yourself or others) as this is an onchain transaction. This is a required step if you want your voting power to count towards proposals.
{% endhint %}

1. Click on Delegate

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe8bOa7b3DY6F-HyCt2bLWF_OcZ4fKeWwR0PvZ4H2S6MZStMLqcQTCy9MUhTk0pihbn5GVvSfc65XL6dWsBDCk3qk6lFmLKx4WuTmmysZXx_OyPZvWfSEfJV3EPugMW41dP6DuTAw?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>
2. If you don’t see this screen click on your wallet (top right corner)

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfGi1HFagXBOZkgQt43gON6XjMM7cvqyiI7wNQYXzBvd7sNmO9Zelg_HVIkkOTub96Uj6yJ7jsn-AyH1GbP62sppasncenoGHY1_b6NuFl7PG-R752QBqT47xVPWyapeR5taufPOA?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>
3. Click “Create delegate statement”

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfFaZpwJ6OyTPXi05DZu_ASxPhG7--P1eCVtKu5zwdclSeUpo3pA_2Mu0m5jRH6hfuvWgY5Se0ntFkjqtYn9smKTmr9LFRHCJiRHD15_NTs0mc3fG1Kaii3_njYmZN9CtrGPZLsWg?key=0ATKgfmFkvdgLlV10xH6wLLq" alt="" width="375"><figcaption></figcaption></figure>
4. On the right side of the screen click “Delegate”

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc0_R9iZswTPb_xHPTZeflKpDSuH-I41C_2Jh9DPyNi2KMLErHZmhiD7uaPPcvE7kP_ErCZ-as_oqkv4wl74-l0NqE4RkTYmjcBC4k8rwC_PmtXEndaiSRYGFbrv0BwNoMJ33_Q?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>
5. Confirm you want to delegate voting power to yourself

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdNvcRyw9flXNJwQH3uj0t48bM9JmJGsGBwAv4ql6tqpKu_Ug5F3N-kXB9Rmjmb5Bc9SM4dDs2_ea9T0wM1fPbuibRRBv4wllYCJ532Nb9T6zg7z1860SqXe6vcVUnGJ5unmLtG?key=0ATKgfmFkvdgLlV10xH6wLLq" alt="" width="375"><figcaption></figcaption></figure>
6. Click Delegate
7. Confirm in your wallet the Transaction request (ensuring you have enough funds for the Network fee)

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc_PXEhOVueszMNurqYFVdhFriLniJvnSduOTiycL888oqs24EP2etwvdQVI7FsjP3fTn_1xezEK-xv7XQEmEAH2AjMuX0u4D_R80UMykILmdEINaX157p3wafiH3Jqs3nxsLdV4A?key=0ATKgfmFkvdgLlV10xH6wLLq" alt="" width="188"><figcaption></figcaption></figure>

8. Delegation complete

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd4mqdQrbt-3oW8Oo0E9YuLQmdiZmZSgR7zeJP0UIWUKtLOv1pxOUGuQD10Yk4MNjyqBsMOxUCLGH9aZk6FAUle6jpOgb3cwEg30nCPLACahk-mjGVPF8q9AhbDRie449Crc9nS?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>

### Delegate voting power to someone else

1. Go to <https://gov.xai.games/delegates>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdhmYs4hH5B4nZwaPSF5siuxQ5qbKTcdFh-0CQpRad4fJ5vvKws_jWWU_gTn3QX_HzpH7Ui27sIMbeO3gvLPwo3s-UkItd9HRwgdIrLCTd_YsekuIfISGmeMctF_JR90dLOIbm0Lg?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>
2. On the card of the delegate profile you want to delegate voting power to, select Delegate

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXed27Hc4ocFUeuIeLn3aSyU-bmnI5Rtg4VINk_u4GXNdUf3KhMA0sVvjuoyJ9nJcDb1zke5Tke1c4MmdYG956SzoBIosDMouE5Hk4M-yQF7K3z0ERQzfv8SiAvJlTz9Q192XwuqeQ?key=0ATKgfmFkvdgLlV10xH6wLLq" alt="" width="188"><figcaption></figcaption></figure>
3. Confirm in your wallet the Transaction request (ensuring you have enough funds for the Network fee)

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe69_07f4P9fJBOI9VjbSnYc1oBj7xiq_26v70a-p2Ypm1Q-HHVO6cwDSOlJCc4pGKG78BhnLiqBDMYuwm4rURT4kYNyo6SYuzH5ZZ8J-0AEDu-rOflAxJQGe99saYuHL6YZM1oaA?key=0ATKgfmFkvdgLlV10xH6wLLq" alt="" width="188"><figcaption></figcaption></figure>

4. Delegate complete

### Setup a Delegate statement

{% hint style="info" %}
A Delegate statement is required to vote in a proposal. The information you choose to share is public but can be updated later
{% endhint %}

A Delegate statement is a public profile of your voting power. You can setup a Delegate statement to help others decide if they should delegate their voting power to you.

1. Connect your wallet (for guidance see [above](#connect-your-wallet-to-gov.xai.games))
2. Click on your wallet (top right)

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfrXzJMaHD-U5hICXOlPQW8XpbTIFH0Dvl63wL84pRt9PKhql0KCaLe_wuasbi_0t2C4vD3y00HLQH-3sngz9IY69A950vR245V8KdzlI9FSqkStucAZ9P5h0dk9UQwxtJWhf0d?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>
3. Click on Create delegate statement

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfFaZpwJ6OyTPXi05DZu_ASxPhG7--P1eCVtKu5zwdclSeUpo3pA_2Mu0m5jRH6hfuvWgY5Se0ntFkjqtYn9smKTmr9LFRHCJiRHD15_NTs0mc3fG1Kaii3_njYmZN9CtrGPZLsWg?key=0ATKgfmFkvdgLlV10xH6wLLq" alt="" width="375"><figcaption></figcaption></figure>
4. Fill in your details

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcAZoJRc8tWBubju1xPfheZ863viDdv2U7PgA0cYJGSK70IdkhIskTnWnXwRHfYjymit9lyPmkmoXQqX8_fWDvUQqWJnGu_AEoLncc5GzZs6QgzdP9S22ISMlCU2--FhYccxEuieg?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>
5. Click Submit delegate profile (bottom of form)

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdmFukXrGg4bNO33tTX-Gbdl10rPeWPfplqZEgMHPrSnpMvz1xXejOcUJ5OwDlENkFGpB6soqFSwhTPF3JC3TjocoFr9Wz2MWURNtpPfLDGm3-b7dXAhVVa45owgA19X7hQ9xsjmQ?key=0ATKgfmFkvdgLlV10xH6wLLq" alt=""><figcaption></figcaption></figure>
6. Confirm Signature request in wallet

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXet7W-O2QJXqD4im_-7avR__PDaDqPFYPYlTEikrgImUlCgH7vKo4Ky806vv5tcgZ3rQRiAZbjsrSqj1F4qmuvMYxwYQfBkVPUJC65Y8z7EcvJdM8zCFFJtpTwcoA6XpysHxCX9yA?key=0ATKgfmFkvdgLlV10xH6wLLq" alt="" width="188"><figcaption></figcaption></figure>

7. Delegate statement setup complete

## Voting for a proposal

{% hint style="info" %}
You will need ArbETH to vote on a proposal as this is an onchain transaction
{% endhint %}

1. Find proposal at <https://gov.xai.games/proposals>
2. Connect your wallet (for guidance see [above](#connect-your-wallet-to-gov.xai.games))
3. Select proposal to vote on
4. Select if you are going to support, reject or abstain from the proposal
5. (Optional) Add a comment/reason for your vote
6. Click vote

<br>


# Create a Proposal Guide

## Overview

{% hint style="info" %}
Proposals should be discussed with the Xai Community in [Xai Discord](https://discord.gg/xaigames) channel [#ecosystem-discussion](https://discord.com/channels/870683519230308372/1118180272635121704) and initially proposed at [#ecosystem-proposal ](https://discord.com/channels/870683519230308372/1276309888921899008)before creating an official Xai DAO proposal by following this guide
{% endhint %}

Below is a step by step of how to create a proposal. You will need to do the following:

* [Connect your wallet](#connect-your-wallet-to-gov.xai.games)
* Create proposal
* A small amount of ArbETH for governance txns (creating proposal)

## Requirements

{% hint style="info" %}
The Governor Manager wallet for Xai DAO is `0x433FA65c662Bb8232222341637E2F7f056AA9cAc`
{% endhint %}

* Use a Governor Manager wallet
* Use a wallet with sufficient voting power to qualify for proposal creation

## Create a proposal

1. [Connect your wallet](https://xai-foundation.gitbook.io/xai-network/about-xai/xai-governance-voting-guide/pages/ZhEd1gveD8cd4lvmEAq4#connect-your-wallet-to-gov.xai.games)
2. Select "Create Proposal"

   <figure><img src="/files/uee4gA12j54PSRDTQSOU" alt=""><figcaption></figcaption></figure>
3. Add Title and Description of your proposal

   <figure><img src="/files/OpjAT9tfueKIk7qxJWMo" alt=""><figcaption></figcaption></figure>
4. Add any transactions that are initiated if the proposal passes

   <figure><img src="/files/04Ii1Am2JlvCAcONh6F5" alt="" width="563"><figcaption></figcaption></figure>
5. Select "Create draft"
6. Review your Draft

   <figure><img src="/files/elihJU1oJ7UPAelGUCV8" alt=""><figcaption></figcaption></figure>
7. Select "Submit proposal"
8. Proposal is created. This starts the 3 day preparation period before voting commences.


# XAI Tokenomics

The Xai network and ecosystem leverages XAI and esXAI (escrowed XAI) to bring balance and integrity to the ecosystem.

<figure><img src="/files/bjS18XKULKs984k5zWLB" alt=""><figcaption></figcaption></figure>


# XAI Token’s Utility & Purpose

XAI is the token of record for the Xai blockchain.  Its utility is in line with traditional token utility on popular L1s and L2s and XAI is fully transferable.

* XAI is the gas fee token on the Xai L3
* XAI can be burnt and redeemed for esXAI at a 1:1 ratio at <https://app.xai.games>


# esXAI Token’s Utility & Purpose

esXAI is non-tradeable and non-transferable token.  Its utility is focused on staking for a variety of benefits within the Xai ecosystem.

{% hint style="info" %}
To redeem esXAI using XAI check out <https://app.xai.games/redeem>
{% endhint %}

* XAI can be burnt and redeemed for esXAI instantly at a 1:1 ratio at <https://app.xai.games> .
* esXAI can be burnt and redeemed for XAI with varying rates and waiting periods.  This process is explained in more detail in [The Redemption Process](/xai-network/about-xai/xai-tokenomics/the-redemption-process).
* esXAI is used to reward Sentry node operators and provide operators with a variety of benefits.

Staked esXAI provides the following benefits:

* **Participation in Staking Pools**&#x20;
  * Creating Pools: To increase the utility of Sentry Keys, pool creation will be exclusive to KYC’d Sentry Key holders. This empowers our community members who are verified, align with our security standards, and have demonstrated a track-record of supporting the Xai community.
  * Pool Configuration: Pool owners will be able to name their pool, provide a description, attach links to social accounts and set payout splits to divide rewards amongst the pool owner, Key stakers and esXAI stakers.
  * Pooling Keys: By pooling Keys together, our community members can collaborate to smoothen the reward emissions rate. This pooling strategy leads to more consistent and significant rewards, benefiting all participants of the pool.
  * Pooling esXAI: Any esXAI holder can join a pool, whether they own a Sentry Key or not, to stake their esXAI and receive a portion of the pool’s rewards. This will allow pool owners to connect with wallet addresses regardless of the level of their holdings.
  * Rewarding Participants: Sentry Node rewards in the form of esXAI from all Keys participating in the pool will be claimed by the pool contract to be redistributed to the pool participants based on the pool’s configuration.
  * For more information, please review the [Staking Explained](/xai-network/staking-explained) section.  Please also review the Staking Terms on our website.&#x20;

{% hint style="info" %}
Review the [**roadmap**](https://xai-foundation.gitbook.io/xai-network/~/changes/TieONXPo3G91dLSqRpEI/xai-blockchain/xai-protocol/protocol-roadmap) to see when this functionality is available.
{% endhint %}


# The Redemption Process

{% hint style="info" %}
To redeem esXAI go to <https://app.xai.games/redeem>
{% endhint %}

XAI and esXAI are separate tokens. Upon the completion of a redemption process, one token will be burned and it's counterpart minted.&#x20;

#### Redeeming XAI for esXAI

XAI may be redeemed for esXAI at any time without penalty or restriction.  The ratio of conversion is always 1:1 (100%) and there is no unlock period.

#### Redeeming esXAI for XAI

The redeem process to convert esXAI to XAI includes an unlock period, the duration of which is selected by the user. The conversion ratio will increase proportionally with the redemption duration:

* The minimum redemption duration of 15 days will provide a 1:0.25 ratio (25%).
  * The remaining 75% of esXAI will be burned upon claim of the redemption.
* The middle redemption duration of 90 days will provide a 1:0.625 ratio (62.5%).
  * The remaining 37.5% of esXAI will be burned upon claim of the redemption.
* The maximum redemption duration of 180 days will provide a 1:1 ratio (100%).
* Any esXAI redeeming process can be freely canceled at any time by the user, including after the unlock period is over if the redemption has not been claimed.
* Any canceled redeem before its end will void the whole process. Users will retrieve their entire amount of esXAI, and no XAI. If users initiate another redemption they will have to start the unlock period anew.
* KYC will be required for any Sentry Key holders to claim a esXAI to XAI redemption that has completed its unlock period.

The Xai foundation may reserve up to 50% of would-be burned esXAI from the 15 and 90 day redemptions to the Xai foundation to support the Network.

{% embed url="<https://www.loom.com/share/04a9894909d04bf19d5a6dea10001a46?sid=2ed5f6dc-5caa-4354-92dc-710358b24e1e>" %}
Redemption Demo
{% endembed %}


# Token metrics and initial allocation

## Initial Xai allocation and unlock schedule

<figure><img src="/files/2jYzzS8wvx3dobYpFMFj" alt=""><figcaption></figcaption></figure>

**Team:** 20% of max supply was allocated to core team and early contributors. This will begin to unlock daily 6 months after TGE. The allocation will unlock over a 36 month period. 42 months in total.

**Investors:** 22.41% of max supply was purchased by investors in early rounds. This will begin to unlock daily 6 months after TGE. The allocation will unlock over a 24 month period. 30 months in total.

**Ecosystem:** 2% of max supply has been earmarked for market makers. The allocation will be unlocked immediately at TGE. 5.5% of max supply has been earmarked for the ecosystem. The allocation will begin unlocking daily 6 months after TGE and will unlock over a 36 month period. 42 months in total.

## Key token metrics

### Maximum Supply

The maximum number of tokens coded to exist in the lifetime of the cryptocurrency.

Xai has a maximum supply of 2.5B tokens, which includes all XAI and esXAI.&#x20;

You can verify this on chain by checking the `MAX_SUPPLY` function on the ERC20 smart contract for Xai deployed to Arbitrum. This smart contract can be found at [`0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66`](https://arbiscan.io/token/0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66#readProxyContract#F2).

<figure><img src="/files/Yf97dGkrhFulgvpntgAB" alt="" width="375"><figcaption><p>MAX_SUPPLY</p></figcaption></figure>

### Total Supply

Total Supply is the amount of tokens that have already been created, minus any tokens that have been burned (removed from circulation).

Total Supply includes all esXAI and XAI that has been already minted. This is because XAI is burned in exchange for redeeming esXAI (and vice versa). To learn more about the redemption process [read this](/xai-network/about-xai/xai-tokenomics/the-redemption-process).

#### Total Supply as at 28 October 2025

<table><thead><tr><th>Token</th><th width="166" align="right">totalSupply </th><th>Smart contract</th></tr></thead><tbody><tr><td>XAI</td><td align="right">2.01BN</td><td><a href="https://arbiscan.io/token/0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66#readProxyContract#F13"><code>0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66</code></a></td></tr><tr><td>esXAI</td><td align="right">191M</td><td><a href="https://arbiscan.io/address/0x4c749d097832de2fecc989ce18fdc5f1bd76700c#readProxyContract#F24"><code>0x4c749d097832de2fecc989ce18fdc5f1bd76700c</code></a></td></tr><tr><td><strong>Total Supply</strong></td><td align="right"><strong>2.2BN</strong></td><td></td></tr></tbody></table>

You can easily fetch TotalSupply of both esXAI and XAI by checking the `getCombinedTotalSupply` function on an ERC20 smart contract deployed to Arbitrum. This smart contract can be found at [`0xfD41041180571C5D371BEA3D9550E55653671198`](https://arbiscan.io/address/0xfD41041180571C5D371BEA3D9550E55653671198#readProxyContract#F17)

<figure><img src="/files/TprApHPxMdVgXDfBQ4ZU" alt="" width="563"><figcaption><p>getCombinedTotalSupply</p></figcaption></figure>

### Circulating Supply

The amount of tokens that are circulating in the market and are tradeable by the public. Locked supply regularly changes based on unlock events.

To calculate circulating supply, subtract Locked XAI tokens from the the Total Supply of XAI tokens.

{% hint style="info" %}
Note: Circulating Supply does not include esXAI because esXAI is not transferable.
{% endhint %}

You can easily fetch Total Supply of XAI by checking the `totalSupply` function on the ERC20 smart contract deployed to Arbitrum. This smart contract can be found at [`0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66`](https://arbiscan.io/address/0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66#readProxyContract#F13)

<figure><img src="/files/K1GTF6iinQP1QqDRX8lQ" alt="" width="375"><figcaption><p><code>totalSupply</code> of XAI</p></figcaption></figure>

You can easily fetch Locked Supply of XAI by checking the Token Holdings dropdown for each wallet listed in the table below and adding up all the XAI values across all listed wallets.

<figure><img src="/files/LQD090x3OLRvIKpFXVvS" alt="" width="375"><figcaption><p>XAI Token Holdings for <code>0x0B200D24BedF5c9421EDB778130350514ced654C</code></p></figcaption></figure>

{% hint style="info" %}
Investor wallets have both locked XAI and unlocked XAI but Circulating Supply follows the [Unlock Schedule](#unlock-schedule) below
{% endhint %}

#### Unlocked and Locked XAI Wallets

<table><thead><tr><th width="140">Token</th><th>Smart contract</th></tr></thead><tbody><tr><td>XAI</td><td><a href="https://arbiscan.io/token/0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66#readProxyContract#F13"><code>arb1:0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66</code></a></td></tr><tr><td>Locked XAI</td><td><a href="https://arbiscan.io/token/0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66?a=0x0B200D24BedF5c9421EDB778130350514ced654C"><code>arb1:0x0B200D24BedF5c9421EDB778130350514ced654C</code></a><br><a href="https://arbiscan.io/token/0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66?a=0xdbABF9bc164AeD5fd527d771f855f8Dc72595458"><code>arb1:0xdbABF9bc164AeD5fd527d771f855f8Dc72595458</code></a><br><a href="https://arbiscan.io/token/0x4cb9a7ae498cedcbb5eae9f25736ae7d428c9d66?a=0xBBcb40Ff54A1bE0F1781becdB8604f29A53f2361"><code>arb1:0xBBcb40Ff54A1bE0F1781becdB8604f29A53f2361</code></a><br></td></tr></tbody></table>

Circulating Supply as of 28 October 2025: 1.82 BN

## Unlock Schedule

Xai mainnet launched publicly on January 9, 2024. The network's native token, XAI, facilitates on-chain transactions, pays gas fees, secures the network, and provides on-chain liquidity. The XAI [Maximum Supply](#maximum-supply) is capped at 2.5 billion tokens. At mainnet launch, roughly 17% of [Maximum Supply](#maximum-supply) were in circulation with the remainder being released on a proposed schedule, as shown in the graph below, to maintain network stability.

The [Maximum Supply](#maximum-supply) has been apportioned in a manner to support those who contributed to the launch of Xai mainnet and ensure its ongoing health through a vibrant, active community.

<figure><img src="/files/Rg2tJ5eTQ5g13qCzrIxn" alt=""><figcaption><p>XAI Circulating Supply</p></figcaption></figure>

{% hint style="info" %}
Note that XAI Circulating Supply chart excludes esXAI emissions, esXAI to XAI redemptions and XAI gas burning. For that information please visit [this dashboard](https://dune.com/xai_foundation/xai-network).

Circulation amounts refer to numbers at end of each month.
{% endhint %}


# XAI & esXAI Emissions & Burning

The **Maximum Total Supply** of XAI and esXAI combined amounts to 2.5 Billion tokens.

**Total Supply** is the total amount of XAI and esXAI that exists at any given time, whether locked or unlocked.

**Circulating Supply** is the total amount of XAI and esXAI that exists and is unlocked (excluding any locked portion).

All of the gas fees paid in the Xai ecosystem are paid in XAI and burnt.

The daily Sentry node emissions of esXAI hinge on the current Total Supply of both XAI and esXAI combined. XAI Total Supply undergoes reduction through the burning of XAI as gas within the Xai ecosystem. esXAI’s Total Supply also undergoes reduction through the burning of esXAI during the redemption process (depending on user inputs).

The daily emission rate of esXAI remains dynamic, contingent upon the Total Supply of XAI and esXAI combined. Upon reaching key thresholds in Total Supply, esXAI emissions will automatically halve. Conversely, if the Total Supply contracts below the threshold of a halving event through burning, the emission rate of esXAI can increase to accommodate demand. These dual factors interact to establish a flexible and adaptive supply mechanism. This mechanism ensures enduring ecosystem rewards for the Sentry Keys, which solve key problems for the chain. Simultaneously, dynamic halving imposes constraints on the overall supply through negative pressure exerted on the quantity of tokens in circulation.

Once the Total Supply reaches approximately half of the Maximum Total Supply, daily emissions begin to decrease. The reduction continues each time the Total Supply increases by half of the previous threshold value. The basic Emission Tranches are as follows:

| ≤ 1,250,000,000 | 1,712,328.7671232900 |
| --------------- | -------------------- |
| ≤ 1,875,000,000 | 856,164.3835616440   |
| ≤ 2,187,500,000 | 428,082.1917808220   |
| ≤ 2,343,750,000 | 214,041.0958904110   |
| ≤ 2,421,875,000 | 107,020.5479452050   |
| ≤ 2,460,937,500 | 53,510.2739726027    |
| ≤ 2,480,468,750 | 26,755.1369863014    |

…etc. This continues on forever.&#x20;

85% of esXAI emissions support the essential work of Sentry Keys, ensuring the network's integrity. A remaining 15% is allocated to a gas subsidy node which is used to help create a gasless experience for players, thereby decreasing friction on chain and likely increasing transaction volume.&#x20;

{% hint style="info" %}

* Review the [**open initiatives**](/xai-network/about-xai/open-initiatives/xai-protocol-initiatives) to see when this functionality is available.
* The first halving event took place on: 05/22/24.
  {% endhint %}


# Network Rewards

Network Rewards are issued for the previous Challenge's Assertions approximately every hour when the next Challenge is created. The total network reward amount will be calculated based off of the emission schedule and time in seconds since the last Challenge.  To calculate this you use the following formula

((daily emission rate)/(86400 seconds in a day)) \* (seconds since last challenge) = total network rewards for the challenge

Although the total network Reward for each Challenge is fixed by the emission schedule, the division of the Network Reward amongst the operational and participating Sentry Keys depends on a number of factors: the total supply of XAI and esXAI, the number of keys that are operating for a given Challenge, and the reward tier of those keys.&#x20;

When determining the total supply, please keep in mind the following;

1. The combined total of XAI and esXAI will never exceed 2,500,000,000. Given the Xai ecosystem is dynamic, accurately predicting monthly token reward per operational Sentry Key is not possible.
2. 100% of gas is burned, so it is not guaranteed that the supply will always be inflationary; it may experience periods of deflation.

When determining the number of keys that are operating, please keep in mind the following;

1. The total number of Sentry Keys. The Xai Foundation will not sell more than 5,000,000 Sentry keys. This is expected to take 2-3 years. The price per Sentry key will increase over time.
2. The monthly quantity of esXAI per Sentry Key will fluctuate based on the number of keys that are being operated by a Sentry Node and the reward tiers of those keys.

When determining the reward tier of Sentry Keys, please keep in mind the following:

1. Each Sentry Key has a 0.01% percent probability of participating in a Challenge, therefore some Sentry Keys will generate no rewards from each given Challenge.
2. The probability that a Sentry Key will participate in a Challenge can be increased by Staking (refer to [Staking Explained](/xai-network/staking-explained)).
   1. If a wallet has a v1 stake,  the Reward Tier applicable to any unstaked keys in the wallet will be determined by the lower of (a) the staking capacity of all the unstaked keys in the wallet or (b) the v1 stake.&#x20;
   2. If keys are staked in a pool, that pool's Reward Tier will apply to all keys staked in the pool. The pool's Reward Tier is determined by the lower of (a) the pool's esXAI staking capacity, or (b) the esXAI staked in the pool.

All Sentry Keys that participate in a Challenge will receive a pro-rated equal share of the Network Reward.

{% hint style="info" %}

* Read more about how the total supply affects daily emissions in the section [XAI & esXAI Emissions & Burning](/xai-network/about-xai/xai-tokenomics/xai-and-esxai-emissions-and-burning).
* Sentry key owners should prepare to stake their rewards to maintain or improve their monthly rewards.
  {% endhint %}


# Sentry Key Pricing Tiers

Sentry Key sales will be priced based on tiers with a quantity of keys allocated for each pricing tier. Below is a table that displays each tier, the number of keys in that tier, and the cost in ETH to purchase a key in that tier. Once a tier has sold out its allocation the smart contract will implement the new price for the current tier.

In December of 2024 a 1:100 split was implemented to increase the supply by 100x and reduce price by 100x. This allowed keys to be more accessible to users. This resulted in Tier 18 being split in two parts, sales before the split and sales after.

<table><thead><tr><th width="160">Tier</th><th>ETH Cost</th><th>Key Quantity</th></tr></thead><tbody><tr><td>Tier 1</td><td>0.133000000</td><td>3,000</td></tr><tr><td>Tier 2</td><td>0.152950000</td><td>2,841</td></tr><tr><td>Tier 3</td><td>0.175892500</td><td>2,690</td></tr><tr><td>Tier 4</td><td>0.202276375</td><td>2,547</td></tr><tr><td>Tier 5</td><td>0.232617831</td><td>2,412</td></tr><tr><td>Tier 6</td><td>0.267510506</td><td>2,284</td></tr><tr><td>Tier 7</td><td>0.307637082</td><td>2,163</td></tr><tr><td>Tier 8</td><td>0.353782644</td><td>2,048</td></tr><tr><td>Tier 9</td><td>0.406850041</td><td>1,939</td></tr><tr><td>Tier 10</td><td>0.467877547</td><td>1,836</td></tr><tr><td>Tier 11</td><td>0.538059179</td><td>1,738</td></tr><tr><td>Tier 12</td><td>0.618768056</td><td>1,645</td></tr><tr><td>Tier 13</td><td>0.711583264</td><td>1,557</td></tr><tr><td>Tier 14</td><td>0.818320754</td><td>1,474</td></tr><tr><td>Tier 15</td><td>0.941068867</td><td>1,395</td></tr><tr><td>Tier 16</td><td>1.082229197</td><td>1,321</td></tr><tr><td>Tier 17</td><td>1.244563576</td><td>1,251</td></tr><tr><td>Tier 18a</td><td>1.431248113</td><td>1039</td></tr><tr><td>1:100 Airdrop</td><td>NA</td><td>3,482,820</td></tr><tr><td>Tier 18b</td><td>0.01431248113</td><td>14,500</td></tr><tr><td>Tier 19</td><td>0.01645935329</td><td>112,100</td></tr><tr><td>Tier 20</td><td>0.01892825629</td><td>106,100</td></tr><tr><td>Tier 21</td><td>0.02176749473</td><td>100,400</td></tr><tr><td>Tier 22</td><td>0.02503261894</td><td>95,000</td></tr><tr><td>Tier 23</td><td>0.02878751178</td><td>89,900</td></tr><tr><td>Tier 24</td><td>0.03310563855</td><td>85,100</td></tr><tr><td>Tier 25</td><td>0.03807148433</td><td>80,500</td></tr><tr><td>Tier 26</td><td>0.04378220698</td><td>76,200</td></tr><tr><td>Tier 27</td><td>0.05034953803</td><td>72,100</td></tr><tr><td>Tier 28</td><td>0.05790196874</td><td>68,200</td></tr><tr><td>Tier 29</td><td>0.06658726405</td><td>64,500</td></tr><tr><td>Tier 30</td><td>0.07657535365</td><td>61,000</td></tr><tr><td>Tier 31</td><td>0.08806165670</td><td>57,700</td></tr><tr><td>Tier 32</td><td>0.10127090521</td><td>54,600</td></tr><tr><td>Tier 33</td><td>0.11646154099</td><td>51,700</td></tr><tr><td>Tier 34</td><td>0.13393077214</td><td>48,900</td></tr><tr><td>Tier 35</td><td>0.15402038796</td><td>46,300</td></tr><tr><td>Tier 36</td><td>0.17712344615</td><td>43,800</td></tr><tr><td>Tier 37</td><td>0.20369196307</td><td>41,400</td></tr><tr><td>Tier 38</td><td>0.23424575754</td><td>39,200</td></tr><tr><td>Tier 39</td><td>0.26938262117</td><td>37,100</td></tr><tr><td>Tier 40</td><td>0.30979001434</td><td>35,700</td></tr></tbody></table>

**Max XAI Supply**: 2,500,000,000

**Total Sentry Keys**: 5,000,000


# Sentry Keys Explained

The Sentry Node is an observation node that monitors the Xai rollup protocol and if an incorrect block is proposed, it raises an alarm (by whatever means its operator chooses) so that others can intervene. The purpose of Sentry nodes is to solve the [verifier’s dilemma](https://medium.com/offchainlabs/cheater-checking-how-attention-challenges-solve-the-verifiers-dilemma-681a92d9948e).

Sentry nodes can be run on community members’ laptops, desktops or even on cloud instances.  A Sentry Key or Keys are what enable network rewards for running a Sentry Node. A single Sentry Node instance can operate any number of Sentry Keys resulting in one instance generating rewards for unlimited keys. As long as the node is running, there is a probabilistic algorithm that determines if the node operator will receive a esXAI token reward from the network for their Sentry Keys.  That algorithm can be increased by staking esXAI.

Pool operators run Sentry Nodes for all Sentry Keys staked in their pools. This allows Sentry Key holders to earn rewards without having to operate a Sentry Node.


# How do Sentry Nodes Work

The Attention challenges v2 protocol involves several actors including the Xai chain, a parent chain (Arbitrum One), a trusted Challenger, the Xai Sentries and their license key, and a Referee contract. The Challenger creates a BLS key-pair, registers the public key with the Referee, and signs assertions made by validators in the Xai rollup protocol on Arbitrum One. These signatures are verified by the Referee and recorded as challenges associated with the assertions.

Xai Sentries can register with the Referee by purchasing a Sentry Key to be eligible to post claims with respect to an assertion. They get the state root of the correct assertion that will be the successor of a posted assertion, and if a certain condition is met, they post a claim on the assertion by calling the Referee. If a successor assertion is created and confirmed, and the Sentry posted a correct claim, the Sentry contacts the Referee to post a redeem transaction. The Referee verifies several conditions before paying a reward to the Sentry.

The protocol ensures that each assertion must consume exactly the inbox messages that existed when its predecessor assertion was created. This means that as soon as an assertion is created, the state root of its correct successor assertion is fully determined, and can be calculated by any node. This incentivizes each Sentry to determine the correct next state root. The reward for a Sentry depends on the Sentry's state license ID, the successor state root, and a challenge value that does not become known until after the successor state root is fully determined.


# Who Can Operate A Sentry Node

Anyone can operate a sentry node by downloading the software, installing it, and running it. However, to accrue rewards, at least one Sentry Key must be purchased. Rewards are claimed in the non-transferable token esXAI. esXAI can be redeemed for XAI.&#x20;

To claim XAI redemptions, key holders must successfully pass a KYC check that confirms two conditions: a) they are not in the USA, and b) they are not subject to any OFAC sanctions. If you would like to know if you are subject to OFAC sanctions, you can review the OFAC website [here](https://ofac.treasury.gov/). KYC screening will be conducted by Blockpass.  [Blockpass](https://www.blockpass.org/) is leveraged by projects like Polygon, Chainlink, Cardano, Animoca and many others in the industry.&#x20;

When you purchase a Sentry Key, you must also confirm that doing so does not violate any local laws which you are subject to.\
\
Sentry nodes that are not running or not properly funded to pay for gas fees do not accrue rewards, even with a Sentry key. Therefore, operators will want to ensure that their nodes are funded, online and running.

{% hint style="info" %}

* Challenges can be missed in the event of a significant update. These updates will be announced in [Discord](https://discord.gg/xaigames) ahead of time.
* Node operators may be required to update their software to keep the nodes running
  {% endhint %}


# Referee Smart Contract

The Referee Smart Contract is a crucial component in the Xai ecosystem. It is responsible for managing and validating assertions made by the Sentry Nodes in the network. The contract has several key functionalities:

* submission of assertions
* claiming rewards
* creating assertion hash and checking payout


# Submission of Assertions

The contract allows Sentry Nodes to submit assertions to a challenge. This function can only be called by the owner of a Sentry Key or addresses they have approved on this contract. The function checks if the challenge is open for submissions and if the Sentry Key hasn't already been submitted for this challenge.


# 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.


# 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.


# Challenger Component

The Challenger is a trusted entity in the Xai ecosystem. It creates a BLS key-pair and registers the public key with the Referee. When an assertion is made by a validator in the Xai rollup protocol, the Challenger signs the assertion with its private key and submits the signature to the Referee. The Referee verifies the signature and records it as a challenge associated with the assertion. This process ensures the integrity of the assertions made in the Xai rollup protocol.


# Key (NFT-based)

The Sentry Key is a unique, non-fungible token (NFT) that is required to operate a Sentry Node in the Xai network. The Sentry Key serves as a proof of eligibility for a node to submit claims and receive rewards. It is minted by sending the correct amount of Ether or equivalent value in fiat or other ERC20 currencies that the mint contract accepts, and the price for minting is determined by an increasing threshold system.

The Sentry Key plays a crucial role in the Referee contract. When a node wants to submit an assertion to a challenge, it must provide its Sentry Key ID. The Referee contract checks if the Sentry Key is valid and if the node is either the owner of the Sentry Key or an approved operator. If these conditions are met, the key's assertion is submitted to the challenge.

When the next challenge occurs the Referee contract will make rewards available for Sentry Keys that submitted assertions for the previous challenge.

In summary, the Sentry Key is a key component in the Xai network that regulates the operation of Sentry Nodes, the submission of assertions, and the distribution of rewards.


# Sentry Download and Operation

To operate a Sentry, users need to download and use a Core library. This library is utilized in both a Command Line Interface (CLI) application and a desktop application. These applications serve as wrappers for the Sentry software supplied by the Core library.

The Core library is designed to automate all the necessary steps to run a Sentry. It simplifies the process of setting up and running a Sentry, making it accessible for users with varying levels of technical expertise.

The Core library handles tasks such as setting up the Sentry environment, managing node operations, and interacting with the Referee. It also provides a user-friendly interface for monitoring node status and managing node settings. By using the Core library, users can focus on the strategic aspects of operating a node, such as optimizing their node's performance and maximizing their rewards.

The primary method for running the Core library is through the Desktop client or the CLI. Both of these are designed to be user-friendly and provide a seamless experience for operating a node.


# Sentry Wallet Functionality

In the Xai ecosystem, a Sentry Wallet plays a crucial role in the interaction between the Sentry Nodes and the Referee Smart Contract. The Sentry Wallet acts as an intermediary agent responsible for submitting assertions to the Referee on behalf of the associated Sentry. This is facilitated through specific functions in the Referee contract that can only be called by the owner of a Sentry Key or addresses they have approved on this contract.

The Sentry Wallet can submit an assertion to a challenge by calling the \`submitAssertionToChallenge\` function in the Referee contract. This function checks if the challenge is open for submissions and if the Sentry Key hasn't already been submitted for this challenge. If these conditions are met, the sentry's assertion is submitted to the challenge.

The Sentry Wallet can also claim a reward for a successful assertion by calling the \`claimReward\` function in the Referee contract. This function checks if the challenge is closed for submissions. If this conditions is met and the assertion is valid for a payout, a reward is sent to the Sentry owner.

In summary, the Sentry Wallet serves as a messenger facilitating the interaction between the node and the Referee, thereby ensuring the smooth operation of the Xai network.


# Licensing Impact

A Sentry Node is able to operate Sentry Keys on a single machine. Previously, putting more keys on a singular node does increase the amount of throughput that your computer will need for the Sentry, including the hashing of submissions and submitting claims to the chain. However this has since been optimized to eliminate any additional operational requirements at scale.


# Sentry Node Hardware Requirements

The Sentry Node software supports Windows Desktop, Mac, and Linux (64-bit required). These are the current resources required for running the Sentry Node Software with up to 100 license keys:\
\
**4 GB RAM**\
**2 CPU Cores** \
**60 GB Disk Space**\
**x86/X64 Processor**\
**Stable Internet Connection**

When incorporating additional keys into your node, it is expected that the hardware prerequisites will also see an escalation. However, it is not mandatory to allocate a separate machine for each key. The system's scalability is anticipated to accommodate dozens of keys on a single machine, and potentially even more.

\
The Sentry Node Software supports ARM Processors like the Apple M1/M2 chips.\
\
These requirements are subject to change.


# Sentry Node Utility

## Sentry Node Operations: Pre and Post V2 BOLD Update on Xai Blockchain

Xai blockchain's infrastructure, currently leveraging Arbitrum’s Nitro Rollup Contracts, is poised for a significant evolution with the upcoming V2 BOLD update from Arbitrum. This transition marks a pivotal shift in the functionality of the Sentry Nodes within the Xai ecosystem, especially in terms of security and proactive error detection.

{% hint style="info" %}

* The code and specification for Offchain Labs' BOLD (Bounded Liquidity Delay) is available on [**Github**](https://github.com/OffchainLabs/bold).
* Read more about BOLD protocol and roadmap [**here**](https://medium.com/offchainlabs/bold-permissionless-validation-for-arbitrum-chains-9934eb5328cc).
* Details regarding v2 BOLD will be available in the near future.&#x20;
  {% endhint %}

### Pre-V2 BOLD Update Scenario:

In the current state, the Challenger, a critical component in our system, retrieves the State Root from the Rollup Protocol. Simultaneously, the Nitro Nodes, responsible for supplying this State Root, also receive the same data. The primary function of the Sentry Nodes, in this setup, is to ensure the integrity of the State Root as submitted to the Rollup Protocol.

A crucial limitation, however, is the Sentry's inability to foresee the State Root. This reactive approach means that Sentry Nodes act more like traditional digital detectives, verifying the State Root only after it has been committed. Think of this as the conventional crime-fighting approach in a digital realm – the Sentry Nodes investigate and flag an error (akin to a crime) only after it has occurred. They are effectively working post-event, detecting and raising an alarm when issues make their way into the system.

### Post-V2 BOLD Update Scenario:

The V2 BOLD update introduces a paradigm shift. While the Challenger continues to receive the State Root from the Rollup Protocol, the Nitro Nodes gain a significant enhancement – the ability to predict the next State Root before the completion of the current challenge. This prediction is synchronized with the closure of the Challenger's current challenge and the submission of the new State Root.

This advanced capability dramatically elevates the security posture of Xai blockchain. We transition from reactive to proactive error detection. The Sentry Nodes, equipped with this foresight, can now identify and address improper State Roots before they are even submitted to the Rollup Protocol. It’s akin to having a 'precognitive' ability, reminiscent of the 'precogs' in the science fiction classic, "Minority Report".

To elaborate, in the movie, 'precogs' are individuals with the gift to foresee crimes before they happen, allowing law enforcement to prevent them proactively. Analogously, in our Post V2 BOLD update scenario, our Sentry Nodes assume the role of these 'precogs', gaining the ability to 'see' potential issues (improper State Roots) before they materialize in the Rollup Protocol. This is a monumental leap from the traditional 'after-the-fact' approach to a more advanced, predictive security measure, ensuring a robust and preemptively secure blockchain environment.


# Accruing Key Rewards

* To accrue key rewards, a Sentry Key must participate in a Challenge.&#x20;
* A Challenge is created approximately once every hour. This means there will be \~720 Challenges per month.&#x20;
* Each Sentry Key that participates in a Challenge will receive a pro rata share of the Network Reward, as described in [Network Rewards](/xai-network/about-xai/xai-tokenomics/network-rewards).&#x20;
* By default, each Sentry Key has a 0.01% probability of participating in a Challenge.  This is known as the Bronze Tier.
* The probability that a Sentry Key will participate in a Challenge will increase if the Key is staked in a Pool with higher Tier than Bronze.  Each Reward Tier is explained in the section, [Staking Rewards and Tiers](/xai-network/staking-explained/staking-rewards-and-tiers).
* To maximize the potential of earning Network Rewards from a Sentry Key, it is strongly recommended that you participate in a Pool and run the Sentry Wallet (a.k.a. Operator) 24 hours a day, 7 days a week.


# Sentry Key Purchase & Setup

This section provides an in-depth guide on how to purchase Keys to run a Xai Sentry Node and how to setup the node to generate rewards.

Here are the 4 primary steps:

1. [Purchase a Sentry Key](/xai-network/about-xai/sentry-key-purchase-and-setup/step-1-purchase-a-sentry-key)
2. [Download & Run the Xai Sentry Node](/xai-network/about-xai/sentry-key-purchase-and-setup/step-2-download-and-run-the-xai-sentry-node)
3. [Complete Requirements to Accrue esXAI](/xai-network/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai)
4. [Complete KYC to Claim esXAI](/xai-network/about-xai/sentry-key-purchase-and-setup/step-4-complete-kyc-or-kyb-to-claim-xai-redemptions)


# Step 1: Purchase a Sentry Key

To generate rewards from running a Xai Sentry Node, a wallet must contain at least 1 Sentry Key. There are four ways to purchase a Sentry Key. You can use any of the options below.

{% hint style="info" %}
Before you get started:

* To ensure your safety and protect your assets, kindly verify that you are making your purchases exclusively through the aforementioned website. The authentic contract associated with these transactions is: <https://arbiscan.io/address/0xbc14d8563b248b79689ecbc43bba53290e0b6b66>
* Note that Sentry Keys are not transferable.
* Always ensure you are on the correct key sale page URL. Keys are on sale at <https://sentry.xai.games/>
* If you purchase more Keys than are available in the current pricing tier, the transaction will revert. For example, if you attempt to purchase 50 Keys, but the current tier only has 25 Keys remaining, the transaction will revert. You will need to split up the transaction into two - one with 25 Keys at the lower tier and another with 25 Keys at the higher tier.
* Make sure you've selected Arbitrum One as the network in your wallet settings.
* Connect your wallet and ensure you have a sufficient balance to mint. Click [here](/xai-network/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3a-set-up-and-fund-the-sentry-wallet/how-to-obtain-arbitrum-eth) for steps on how to obtain AETH.
* Accepted Payments via our Sentry Key Sale Page
  * Arbitrum - ETH, XAI, esXAI, USDC
  * Ethereum - ETH, USDC
  * Solana - SOL, USDC
  * Polygon - SUPER
  * Credit and Debit cards
    {% endhint %}

<table data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><strong>Option 1:</strong> Using the website</td><td><a href="/pages/cPXwx1LFUF0sCGWzvh61">/pages/cPXwx1LFUF0sCGWzvh61</a></td></tr><tr><td align="center"><strong>Option 2:</strong> Using Sentry App</td><td><a href="/pages/Kv5f7BUchQNU8dr7DuoB">/pages/Kv5f7BUchQNU8dr7DuoB</a></td></tr><tr><td align="center"><strong>Option 3:</strong> Using the CLI</td><td><a href="/pages/CxhopzroGhKr35BZek4G">/pages/CxhopzroGhKr35BZek4G</a></td></tr><tr><td align="center"><strong>Option 4:</strong> Mint via Arbiscan</td><td><a href="/pages/9k5FTZQYNdkr0ZwChv5f">/pages/9k5FTZQYNdkr0ZwChv5f</a></td></tr></tbody></table>


# Option 1: Buy Sentry Key via the website

#### Go to <https://sentry.xai.games/> and follow the steps below.

{% hint style="success" %}

* Your wallet must be funded with some AETH to cover gas fees.
* Purchasing more than 175 Sentry Keys in a single transaction will result in batched transactions which means you will need to approve multiple wallet confirmations.
* There is no limit to the number of Sentry Keys per wallet.
* If you have a promo code, be sure to click "Add promo code", paste in the code, then click "Confirm".
* #### The price you see below is only for demo purposes - this is not a real key and not a final price.
* #### Accepted Payments on Arbitrum:
  * ETH, XAI, esXAI (Must have arbETH in your wallet for gas)
* Accepted Payments via Crossmint checkout:
  * Arbitrum: USDC
  * Ethereum: ETH, USDC
  * Solana: SOL, USDC
  * Polygon: SUPER
  * Credit and Debit cards
    {% endhint %}

Using $AETH to buy Sentry Keys:

{% embed url="<https://www.loom.com/share/f29c569c0fb5439e93f83625e93d9733?sid=d114c5e1-0def-4115-9a1b-c3ae5dca7076>" %}

Using $XAI to buy Sentry Keys:

{% embed url="<https://www.loom.com/share/f2ad3c9e96d744b0a13e705d775ff162?sid=8650e68b-d729-408f-85ab-6d10badf04b6>" %}

Using $esXAI to buy Sentry Keys:

{% embed url="<https://www.loom.com/share/5c98c4c681b845a8b052f7f8386b8559?sid=a90174b4-53a5-4daf-949d-df01473a708e>" %}

Using credit/debit card to buy Sentry Keys:

{% embed url="<https://www.loom.com/share/25e0039b72264bb780433c681b413463?sid=c716a6c4-db4d-497d-a4bd-54cf9e0ecb74>" %}


# Option 2: Buy Sentry Key via Xai Sentry Node desktop app

#### **If you've already downloaded the Xai Sentry Node desktop app, you can initiate buying keys via the desktop application. See steps below:**

1. Navigate to the Home page in the desktop application by clicking the Xai icon in the top left corner.

<figure><img src="/files/zPtj1Knvz7osvMpxGyMn" alt=""><figcaption></figcaption></figure>

2. Click "Purchase Keys" on the Home page.

<figure><img src="/files/Glm7PBeCQ1pCgDINaQjW" alt=""><figcaption></figcaption></figure>

3. Enter your desired quantity.

{% hint style="warning" %}

* Purchasing more than 175 keys in a single transaction will result in signing multiple wallet confirmations. There is no limit to the number of Keys per wallet.
* #### The price you see below is only for demo purposes - this is not a real key and not a final price.

{% endhint %}

<figure><img src="/files/ksobqUhUbqw9jvw7fess" alt="" width="268"><figcaption></figcaption></figure>

4. Enter a promo code (if you have one).

<figure><img src="/files/pUnbB15yziOUK0y8sDzX" alt="" width="268"><figcaption></figcaption></figure>

5. Click "Confirm Purchase". This will pop you out to a web browser.

{% hint style="info" %}
Xai Sentry Key purchases will only ever take place on <https://sentry.xai.games/>. Check that you are on the correct URL when purchasing Xai Sentry Keys.
{% endhint %}

<figure><img src="/files/xEA2ltiWNdksBlwzR4yJ" alt="" width="268"><figcaption></figcaption></figure>

6. Complete the remaining steps using the guide found here: [Option 1: Buy Sentry Key via the website](/xai-network/about-xai/sentry-key-purchase-and-setup/step-1-purchase-a-sentry-key/option-1-buy-sentry-key-via-the-website)


# Option 3: Buy Sentry Key via Xai Sentry Node CLI (command line interface)

#### After [downloading the Xai Sentry Node CLI](https://github.com/xai-foundation/sentry/releases) (command line interface), you can purchase a Sentry Key using the steps below:

1. Enter the command `mint-node-licenses`. Then hit 'Enter'.
2. Enter a quantity (e.g. 10). Then hit 'Enter'.
3. Enter the private key of the wallet you want to mint the tokens to. Then hit 'Enter'. Note: This wallet is also responsible for purchasing the keys, so make sure it contains sufficient funds in [Arb ETH](/xai-network/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3a-set-up-and-fund-the-sentry-wallet/how-to-obtain-arbitrum-eth).
4. Enter a promo code (if you have one). Then hit 'Enter'. Otherwise, leave it blank and hit 'Enter'.
5. Confirm that the specified number of licenses are minted both in the CLI and in your wallet.

{% hint style="info" %}
Below is an example of how these steps appear in the CLI.
{% endhint %}

<figure><img src="/files/ZoblPWr9FtrGDCJSCKJl" alt=""><figcaption></figcaption></figure>


# How to view the price of a Key via the CLI

When purchasing Keys via the CLI, you may use the `estimate-node-purchase-price` command to view the total cost (in Arb ETH) of purchasing a specified number of Keys.

{% hint style="info" %}
The price of Xai Sentry Keys increase in tranches per [**this table**](/xai-network/about-xai/xai-tokenomics/sentry-key-pricing-tiers). If your purchase crosses a tranche, the `estimate-node-purchase-price` command will account for the higher unit price of Keys in its calculation.
{% endhint %}

Here's how to use this function to retrieve the estimated cost of purchasing a specified number of Keys (not including gas):

1. Type in the command `estimate-node-purchase-price` into the CLI.
2. Enter the quantity of Keys you would like to purchase.
3. Hit 'Enter'.
4. View the result for "Estimated Total Price".

<figure><img src="/files/hKHKCiUYQhL7sw3fZsrO" alt=""><figcaption></figcaption></figure>


# Option 4: Buy Sentry Key via Node License Contract on Arbiscan

## Mint with ETH

1. Go to the Node License contract on Arbiscan:

{% embed url="<https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#readProxyContract#F24>" %}

2. Scroll down to the "24. price" function at the bottom of the page.
3. Enter the number of Keys you want to purchase in "amount" and your promo code in "\_promoCode" (Note: if you do not have a promo code you can put any string e.g. "na") to get the price.

   <figure><img src="/files/ococYbQ0CFBuBs35oWnX" alt=""><figcaption></figcaption></figure>
4. Click on the number next to uint256. In this example, the value 16459353290000000.
5. Find the ETH(1) row. In the screenshot, the value 0.01645935329![](/files/Zk4NugrN6ySp3UtgwdQY)
6. Click on the Copy value button <img src="/files/XrHj9MPrxcNnThRZC6G4" alt="" data-size="line">
7. Go back to the Node License contract on Arbiscan: <https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract>
8. Connect your Web3 wallet.

   <figure><img src="/files/ugPb1cIGebSdurrKcyEo" alt="" width="375"><figcaption></figcaption></figure>
9. Call the mint function <https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract#F8>
   1. Paste in the value from Step 6 into the "mint" field

      <figure><img src="/files/LHNxMxhkSrvzgkFnSj2n" alt="" width="375"><figcaption></figcaption></figure>
10. Enter the quantity of Keys you would like to purchase in the "\_amount (uint256)" field. Use the same amount you entered in Step 3.
11. Enter in your Promo Code in the "\_promoCode" field". Note: if you do not have a promo code you can put any string i.e. "na"
12. Click Write.
13. Approve the transaction in your wallet.

## Mint with USDC

{% hint style="success" %}
You can input a slightly higher amount to cover any slight price changes between steps. Any excess funds will be refunded
{% endhint %}

1. Go to the Node License contract on Arbiscan:

{% embed url="<https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#readProxyContract#F24>" %}

2. Use the "24. price" function at the bottom of the page.
3. Enter the number of Keys you want to purchase in "amount" and your promo code in "\_promoCode" (Note: if you do not have a promo code you can put any string e.g. "na") to get the price.

   <figure><img src="/files/ococYbQ0CFBuBs35oWnX" alt=""><figcaption></figcaption></figure>
4. Click on the number next to uint256. In this example, the value 16459353290000000.
5. Find the ETH(1) row. In the screenshot, the value 0.01645935329![](/files/Zk4NugrN6ySp3UtgwdQY)
6. Click on the Copy value button <img src="/files/XrHj9MPrxcNnThRZC6G4" alt="" data-size="line">
7. Get the latest quote for ETH / USD
   1. The NodeLicense will use the price oracle at <https://arbiscan.io/address/0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612#readContract#F8>
   2. Use `latestAnswer` to get the current ETH / USD value (Note this is with 8 decimals)

      <figure><img src="/files/ITjeok5bBkqBaggEWU95" alt=""><figcaption></figcaption></figure>
   3. Calculate `latestAnswer`  x `price` (from step 4)
8. Go back to the Node License contract on Arbiscan: <https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract>
9. Connect your Web3 wallet.

   <figure><img src="/files/ugPb1cIGebSdurrKcyEo" alt="" width="375"><figcaption></figcaption></figure>
10. Call mintToWithUSDC - <https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract#F10>
    1. Paste in the value from Step 7 (c) into the *"\_*&#x65;xpectedCostUSDC" field.

       <figure><img src="/files/laueRLfLoxnFd25CvPJq" alt="" width="375"><figcaption></figcaption></figure>
11. Enter the quantity of Keys you would like to purchase in the "\_amount (uint256)" field. Use the same amount you entered in Step 3.
12. Enter in your Promo Code in the "\_promoCode" field". Note: if you do not have a promo code you can put any string in
13. Enter in the wallet that will own the key in the "\_to" field".
14. Click Write.
15. Approve the transaction in your wallet.

## Mint with XAI/esXAI

{% hint style="success" %}
You can input a slightly higher amount to cover any slight price changes between steps. Any excess funds will be refunded
{% endhint %}

### 1. Get the Price

1. Go to the Node License contract on Arbiscan:

{% embed url="<https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#readProxyContract#F24>" %}

2. Scroll down to the "24. price" function at the bottom of the page.
3. Enter the number of Keys you want to purchase in "amount" and your promo code in "\_promoCode" (Note: if you do not have a promo code you can put "na") to get the price.

   <figure><img src="/files/ococYbQ0CFBuBs35oWnX" alt=""><figcaption></figcaption></figure>
4. Click on the number next to uint256. In this example, the value [16459353290000000](https://arbiscan.io/unitconverter?wei=16459353290000000).
5. Find the ETH(1) row. In the screenshot, the value 0.01645935329![](/files/Zk4NugrN6ySp3UtgwdQY)
6. Click on the Copy value button <img src="/files/XrHj9MPrxcNnThRZC6G4" alt="" data-size="line">
7. Input into the function `10. ethToXai` the value you got from Step 5, in this example: <https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#readProxyContract#F10>

   <figure><img src="/files/FxsP9bRx3L14Lb54yX2W" alt=""><figcaption></figcaption></figure>
8. Find the ETH(1) row. In the screenshot, the value 215.942123600761418936![](/files/n8ETITX8Q8I1OFFDDt8f)
9. Click on the Copy value button <img src="/files/XrHj9MPrxcNnThRZC6G4" alt="" data-size="line">
10. **At this point, you have the total XAI/esXAI amount required to mint your keys.**

### 2. Approve the NodeLicense Contract as a Spender

You need to allow the NodeLicense contract to spend your XAI or esXAI tokens before minting. You can do this either directly from the key sale page (if available) or via Arbiscan.

#### Approving XAI

1\. Go to the XAI contract `Write Proxy` page: <https://arbiscan.io/address/0x4Cb9a7AE498CEDcBb5EAe9f25736aE7d428C9D66#writeProxyContract>

2\. Connect your wallet.

3\. Find the **`1. approve`** function. <https://arbiscan.io/address/0x4Cb9a7AE498CEDcBb5EAe9f25736aE7d428C9D66#writeProxyContract#F1>

\- `spender`: [`0xbc14d8563b248B79689ECbc43bBa53290e0b6b66`](https://arbiscan.io/address/0xbc14d8563b248b79689ecbc43bba53290e0b6b66) (NodeLicense address)

\- `amount`: The XAI amount you got from Step 1.

4\. Submit the transaction to approve spending.

#### Approving esXAI

1\. Go to the esXAI contract \*\*Write Proxy\*\* page: <https://arbiscan.io/address/0x4C749d097832DE2FEcc989ce18fDc5f1BD76700c#writeProxyContract>

2\. Connect your wallet.

3\. Find the **`2. approve`** function. <https://arbiscan.io/address/0x4Cb9a7AE498CEDcBb5EAe9f25736aE7d428C9D66#writeProxyContract#F1>

\- `spender`: [`0xbc14d8563b248B79689ECbc43bBa53290e0b6b66`](https://arbiscan.io/address/0xbc14d8563b248b79689ecbc43bba53290e0b6b66) (NodeLicense address)

\- `amount`: The esXAI amount you got from Step 1.

4\. Submit the transaction to approve spending.

### 3.  Mint Your Keys

2. Go back to the Node License contract on Arbiscan: <https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract>
3. Connect your Web3 wallet.

   <figure><img src="/files/ugPb1cIGebSdurrKcyEo" alt="" width="375"><figcaption></figcaption></figure>
4. Find the `mintWithXAI` function - <https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract#F13>
5. Paste in the value from Step 9 into the "\_*expectedCost"* field.

   <figure><img src="/files/bAUAQOOPbDALbVWSHnHY" alt="" width="375"><figcaption></figcaption></figure>
6. Enter the quantity of Keys you would like to purchase in the "\_amount (uint256)" field. Use the same amount you entered in Step 3.
7. Enter in your Promo Code in the "\_promoCode" field". Note: if you do not have a promo code you can put any string in
8. Enter in the wallet that will own the key in the "\_to" field"
9. Choose if you are using EsXai or Xai for the purchase set \_useEsXai as either `true` or `false`
   1. `true` if you're using esXAI for payment
   2. `false` if you're using XAI
10. Click Write.
11. Approve the transaction in your wallet.
12. **You've now successfully minted your keys using XAI/esXAI.**


# Step 2: Download & Run the Xai Sentry Node

There are three ways to download and run a sentry node on your computer.

{% tabs %}
{% tab title="Desktop App" %}
The Xai Sentry Node desktop client is a user-friendly app interface that allows you to run a Xai Sentry Node on a computer. It requires little-to-no technical knowledge to operate other than basic computer skills. To download the app, follow the steps below:

1. Go to <https://xai.games/sentrynodes>.
2. Click the download button to initiate the download based on the OS (operating system) you're using.
3. Once download has completed, go to your Downloads folder and launch the application.

{% hint style="info" %}
After moving the "Xai Sentry Node" app into your Applications directory run this command in your terminal.

```
xattr -dr com.apple.quarantine /Applications/Xai\ Sentry\ Node.app/
```

If running the desktop client on MacOS, follow [these steps](https://support.apple.com/en-us/HT202491#:~:text=Open%20System%20Settings.,anyway%2C%20you%20can%20click%20Open.) to give the app permission to run on your computer.
{% endhint %}

Here's what the download page looks like:

<figure><img src="/files/fvt6asIP8VkGuHnMMIA8" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="CLI on Desktop" %}
If you're more technical, you may want to download the CLI-version of the Xai Sentry Node on your computer. To do this, follow the steps below:

1. Go to <https://github.com/xai-foundation/sentry/releases>.
2. Click on the `sentry-node-cli` .zip file that matches your OS (operating system).
3. Once the download completes, extract the file.
4. When extraction is complete, open the file.

{% hint style="info" %}

* Your browser settings may block the direct download from GitHub, so be sure to allow proper download permissions to complete this step successfully.
* Any time a new version of the CLI is available, you will need to download the latest version and re-run the `boot-operator` command. More info on this command can be found [**here**](/xai-network/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3b-start-the-sentry-wallet-a.k.a-operator).
  {% endhint %}
  {% endtab %}

{% tab title="CLI on Cloud Server" %}
The Xai Sentry Node CLI can be run on a VPS (Virtual Private Server) or a VM (Virtual Machine). When selecting the operating system in your virtual service, be sure to use the latest version of Ubuntu. The instructions below are based on the latest version of Ubuntu, but it may work with other versions. You may need to change your package manager commands depending on your operating system.

After logging into your VPS or VM, you will need to type in the following commands in this order:

1. `sudo apt update`
2. `sudo apt install curl unzip`
3. `curl -L -o sentry-node-cli-linux.zip` [`https://github.com/xai-foundation/sentry/releases/latest/download/sentry-node-cli-linux.zip`](https://github.com/xai-foundation/sentry/releases/latest/download/sentry-node-cli-linux.zip)
4. `unzip sentry-node-cli-linux.zip`
5. `./sentry-node-cli-linux`

Once you've run all these commands, you may proceed using the CLI instructions for the remaining steps.
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Not sure if you can run a sentry node? [Click here](/xai-network/about-xai/sentry-keys-explained/sentry-node-hardware-requirements) to see minimum specs required to run a Sentry Node.
{% endhint %}


# Step 3: Complete Requirements to Accrue esXAI

The begin accruing esXAI, you will need to complete the following three steps:

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Step 3a:</strong> Set Up &#x26; Fund the Sentry Wallet</td><td><a href="/pages/NeVvFEzh5xipiq8ublYv">/pages/NeVvFEzh5xipiq8ublYv</a></td></tr><tr><td><strong>Step 3b:</strong> Activate the Sentry Wallet (a.k. Operator)</td><td><a href="/pages/5q0HiLcVZPp4cUNqAnjQ">/pages/5q0HiLcVZPp4cUNqAnjQ</a></td></tr><tr><td><strong>Step 3c:</strong> Assign Keys to the Sentry Wallet</td><td><a href="/pages/WyNeGutpBT0YJOrTqD0f">/pages/WyNeGutpBT0YJOrTqD0f</a></td></tr></tbody></table>


# Step 3a: Set Up & Fund the Sentry Wallet

The Sentry Wallet must be funded with Arbitrum One ETH (a.k.a. AETH or Arb ETH) to pay for the gas required to claim rewards. This can be done in a few simple steps below.

{% hint style="info" %}

* On average, funding your Sentry Wallet with 0.02 Arb ETH is enough to cover the gas required to run 1 Key on a node that's active 24/7 for 1 year.
* If you do not hold AETH already, follow [these steps](/xai-network/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3a-set-up-and-fund-the-sentry-wallet/how-to-obtain-arbitrum-eth).
* If you hold AETH already, proceed to the steps below to fund the Sentry Wallet.
  {% endhint %}

{% tabs %}
{% tab title="I'm using the Xai Sentry Node desktop app" %}
When using the Xai Sentry Node desktop app, a Sentry Wallet is automatically created for you. Follow the steps below to fund the Sentry Wallet in the desktop app.

{% hint style="info" %}
If you wish to use one of your own wallets as the Sentry Wallet rather than the one automatically created for you, you can follow [**these steps**](/xai-network/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3a-set-up-and-fund-the-sentry-wallet/how-to-import-your-wallet-as-the-sentry-wallet-in-the-desktop-app).
{% endhint %}

1. Go to Sentry Wallet in the Xai Sentry Node desktop app.

<div align="center"><figure><img src="/files/wNUOgiq8wpz0aeakEY5H" alt="" width="185"><figcaption></figcaption></figure></div>

2. Click the "Copy" icon next to the Sentry Wallet address to copy to address to your clipboard (see image below)

<div align="center"><figure><img src="/files/XxzM3ShDz4MtEivMKVaE" alt="" width="375"><figcaption></figcaption></figure></div>

3. Go to your wallet and transfer some **Arbitrum ETH** to the address copied in Step 2.
   {% endtab %}

{% tab title="I'm using the Xai Sentry Node CLI (command line interface)" %}
When using the CLI, a Sentry Wallet must be booted up and added for the Node to run. The wallet used to boot the operator is the wallet that requires funds. To fund that wallet, follow the instructions below.

{% hint style="info" %}
If you do not know the public address of the wallet serving as the operator (a.k.a. Sentry Wallet) for a Key, click [**here**](/xai-network/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3b-start-the-sentry-wallet-a.k.a-operator/how-to-create-a-wallet-using-the-cli) to see instructions on how to determine the address via the CLI.
{% endhint %}

First obtain the public address of the wallet serving as the operator. To do that follow these steps:

1. Type in the command `list-operators`. Then hit 'Enter'.
2. Enter the public address of the wallet that contains the Key(s).
3. Copy the listed operator address(es).
4. Go to your wallet and transfer some Arb ETH to the address copied in Step 3.

<figure><img src="/files/ut4Jey3ZV2QZTXwlMr6E" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


# How to Obtain Arbitrum ETH

There are multiple ways to obtain Arbitrum One ETH (a.k.a. AETH or Arb ETH), but here are the best ways depending on your starting point.

{% tabs %}
{% tab title="Bridge ETH to AETH" %}
In this case, all you need to do is bridge ETH on Ethereum's network to ETH on Arbitrum's network. To do this, navigate to the following site then follow the steps below: <https://bridge.arbitrum.io/?l2ChainId=42161>.

{% hint style="info" %}
&#x20;Make sure your wallet's network is connected to Ethereum Mainnet when using the ETH to AETH bridge.
{% endhint %}

{% @supademo/embed demoId="01ZnCKMXC41bM8nlNokQs" url="<https://app.supademo.com/demo/01ZnCKMXC41bM8nlNokQs>" %}
{% endtab %}

{% tab title="Get AETH from CEX" %}
You can buy ETH from Centralized Exchanges (CEX) that support withdrawing to an Arbitrum network. The following are popular CEX's:

* via Bybit: <https://www.bybit.com/en/learn/crypto/buy-ethereum>
* via Binance: <https://www.binance.com/en/how-to-buy/ethereum>
* via Coinbase: <https://www.coinbase.com/how-to-buy/ethereum>
  {% endtab %}
  {% endtabs %}


# How to import your wallet as the Sentry Wallet in the desktop app

Rather than using one of the automatically generated Sentry Wallets, you may choose to import your private key so that one of your own wallets serves as the Sentry Wallet. Below are steps to import your own wallet as the Sentry Wallet in the Xai Sentry Node desktop app:

1. Go to Sentry Wallet in the desktop app.

<div align="center"><figure><img src="/files/uYLmMmo5Wvh8rDM0tVPW" alt="" width="185"><figcaption></figcaption></figure></div>

2. Click the three-dot menu button.

<div align="center"><figure><img src="/files/WIB63EO589TouCRJg3ul" alt="" width="375"><figcaption></figcaption></figure></div>

3. Click "Import Sentry Wallet".

<div align="center"><figure><img src="/files/KNUIEpPUqd249uZAZLYI" alt="" width="375"><figcaption></figcaption></figure></div>

4. Paste in the private key of your desired wallet into the text field.

<div align="center"><figure><img src="/files/olwrZuA1dip0XBnH9Ajs" alt="" width="305"><figcaption></figcaption></figure></div>

5. Click "Confirm Import".

<div align="center"><figure><img src="/files/jnX6O5rWkOpEmcyS9ekb" alt="" width="304"><figcaption></figcaption></figure></div>

6. Confirm that your wallet's public address matches what is display on the Sentry Wallet page. If it does not, you should try importing your private carefully key once more.

<figure><img src="/files/6QifXxLtNPuqwZRSLdcF" alt="" width="375"><figcaption></figcaption></figure>


# Step 3b: Start the Sentry Wallet (a.k.a Operator)

Starting the Sentry Wallet is required to be able to accrue node rewards.

{% tabs %}
{% tab title="Desktop App" %}
Starting the Sentry Wallet when using the desktop app is as easy as a click of a button.

When the Sentry Wallet is not started (it will said "Paused"), there are 3 buttons that say "Start Sentry" which you can click to turn it on (clicking only one of these buttons is sufficient).

{% hint style="info" %}
Few things to keep in mind:

* You do not need to wait for the wallet to be funded to click "Start Sentry". You can activate the Sentry Wallet at any point.
* If you purchase a Key after the Sentry has already started, you will need to pause the Sentry, then start it again. You should see the newly minted Key auto-populate (assuming you have [assigned](/xai-network/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3c-assign-keys-to-the-sentry-wallet) the wallet containing the Key to the Sentry Wallet).
* Once you start the Sentry, it can take anywhere from a few seconds up to 5 minutes depending on the number of Keys you own in your assigned wallets. During this bootup period, you will not be able to pause the Sentry. If you wish to pause the Sentry, you must wait until the full boot-up is complete.
  {% endhint %}

<figure><img src="/files/ArH1DIlxKwU2xm3eZWeW" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="CLI (command line interface)" %}
When using the CLI, an Operator (a.k.a Sentry Wallet) must be booted for the Node to run. If you already have a wallet you want to designate as the Sentry Wallet, follow the steps below.

{% hint style="info" %}
If you do not already have a wallet and need to create a wallet to designate as the Operator, you can do so using [**these steps**](/xai-network/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3b-start-the-sentry-wallet-a.k.a-operator/how-to-create-a-wallet-using-the-cli).
{% endhint %}

1. Type in the command `boot-operator`. Then hit 'Enter'.
2. Type in the private key of the wallet you would like to designate as the Operator. Then hit 'Enter'.

It should look something like this in the CLI:

<figure><img src="/files/l0CP0mfseHigkugA3XgY" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


# How to create a wallet using the CLI

If you do not already have a wallet and need to create a wallet to designate as the Operator, you can do so via the CLI using the steps below.

{% hint style="info" %}
If you do not want to use the CLI to create a new wallet to designate as the Operator, here are a couple other options:

* You may use the same private key as the wallets you used to purchase Sentry Keys.
* You may create a wallet using [Metamask](https://metamask.io/), then export the private key and paste it into the CLI command discussed on the previous page, called `boot-operator`.
  {% endhint %}

1. Type in the command `create-mnemonic`. Then hit 'Enter'.
2. Type in the command `get-private-key-from-mnemonic`. Then hit 'Enter'.
3. Enter the mnemonic that was generated when you typed in the `create-mnemonic` command. Then hit 'Enter'.
4. Hit 'Enter' again. You will notice a private key get generated.
5. Now you can use the private key that's generated in step 4 and use it in the `boot-operator` steps above.
6. If you want to obtain the public key to [fund this wallet](/xai-network/about-xai/sentry-key-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3a-set-up-and-fund-the-sentry-wallet), type in the command `get-public-key-from-private-key`. Then hit 'Enter'.

<figure><img src="/files/O2mqi68dbif0fYARSQ0P" alt=""><figcaption></figcaption></figure>


# Step 3c: Assign Keys to the Sentry Wallet

Wallets containing Sentry Keys must be assigned to the Sentry Wallet in order to accrue node rewards. Below are steps to complete this requirement.

{% tabs %}
{% tab title="Desktop App" %}

1. Go to Sentry Wallet in the Xai Sentry Node desktop app.

<div align="center"><figure><img src="/files/mKZGfmJVRyxofEY5WDWB" alt="" width="185"><figcaption></figcaption></figure></div>

2. Click "Assign keys from new wallet"

<div align="center"><figure><img src="/files/8tD1n8xc2TrZNie8dIYF" alt="" width="563"><figcaption></figcaption></figure></div>

3. More details coming soon!
   {% endtab %}

{% tab title="CLI (command line interface)" %}
When using the CLI, you do not need to assign your wallets with Keys to the Operator; when you use the `boot-operator` command, each wallet containing a Key serves as the Operator by default. However, if you would like to designate a specific wallet to serve as the Operator, you may follow the steps below.

1. Type the command `add-operator` into the CLI.
2. Type in the public address of the wallet you want to designate as the operator.
3. Type in the private key of the wallet that purchased the Sentry Key.

It should look something like this:

<figure><img src="/files/RBFxyaczs0xenXXqNgw7" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you want to designate a specific wallet to be the Operator, you need to run this function only once, regardless of the number of Keys in the assigned wallet.
{% endhint %}
{% endtab %}
{% endtabs %}


# Step 4: Complete KYC (or KYB) to Claim XAI redemptions

You are required to pass KYC before you can claim accrued esXAI to XAI redemptions. BlockPass is the official KYC and KYB provider for Xai Sentry Nodes. Here's how to get started with KYC:

{% tabs %}
{% tab title="Desktop App" %}
If you have not passed KYC and you're using the desktop app, follow the steps below to get started:

1. Navigate to the Sentry Wallet page.
2. Click "Resolve" in the top right corner.

<figure><img src="/files/IJobLvAPMsbE2wjOBoXj" alt=""><figcaption></figcaption></figure>

4. Scroll down to the list of wallets&#x20;

<figure><img src="/files/omL7amifSxG7yCC93NMI" alt=""><figcaption></figcaption></figure>

5. Select the country you're located in using the dropdown.
6. Click "Begin KYC".
7. Complete the KYC/KYB form.

{% hint style="info" %}

* A separate alert will display for each wallet that has not passed KYC.
* If the Sentry Wallet (a.k.a. Operator) is not running within 180 days of accruing esXAI, it will be burned.
* If you see "KYC pending", read more about how to interpret a pending KYC status [**here**](/xai-network/about-xai/sentry-key-purchase-and-setup/step-4-complete-kyc-or-kyb-to-claim-xai-redemptions/how-to-interpret-a-pending-kyc-status).
  {% endhint %}
  {% endtab %}

{% tab title="CLI (command line interface)" %}
If you have not passed KYC and you're using the CLI, follow the steps below to get started:

1. Type the command "KYC".
2. Find the country you're located in by using the arrow keys or typing the name of the country.
3. Hit 'Enter' on your country.
4. Copy/paste the URL into your web browser.
5. Complete the KYC/KYB form.
   {% endtab %}
   {% endtabs %}

For KYC issues, be sure to contact [Blockpass](https://help.blockpass.org/hc/en-us/requests/new). After submitting your KYC documents, check your inbox (including spam) for updates that require additional verification. Once you've passed KYC, you'll notice a message like the one below:

<figure><img src="/files/v22OIRqqckWVqPLbKyzc" alt="" width="306"><figcaption></figcaption></figure>


# How to interpret a Pending KYC status

After you click "Begin KYC" in the Xai Node desktop app, you will notice an alert that says "KYC pending" (see screenshot below). This can mean one of two things:

1\) You started the KYC process but did not submit the application.

2\) Your KYC application has been submitted, but it is currently under review and/or requires further information from you.

During this period, be sure to check back regularly to see if you're approved. If you've submitted all documents and you're still not approved after 48 hours, check your inbox (including spam) for updates. For KYC issues, contact [Blockpass](https://help.blockpass.org/hc/en-us/requests/new). If you have not completed the KYC step, continue the submission by clicking "Continue KYC".

{% hint style="info" %}
You will see "KYC pending" for each wallet that has not completed or passed the KYC step.
{% endhint %}

<figure><img src="/files/jHIUY7FwSniilGg7PfzJ" alt="" width="309"><figcaption></figcaption></figure>


# Common Troubleshooting Steps

Here are some common questions and answers:

1. [How do I know my Node is running in the CLI?](/xai-network/about-xai/sentry-key-purchase-and-setup/common-troubleshooting-steps/how-do-i-know-my-node-is-running-in-the-cli)
2. [How do I KYC if I'm using the CLI?](/xai-network/about-xai/sentry-key-purchase-and-setup/common-troubleshooting-steps/how-do-i-kyc-if-im-using-the-cli)
3. [How can I see my rewards?](/xai-network/about-xai/sentry-key-purchase-and-setup/common-troubleshooting-steps/how-can-i-see-my-rewards)
4. [I see some crashing, inconsistent emissions / missing revert data errors. What should I do?](/xai-network/about-xai/sentry-key-purchase-and-setup/common-troubleshooting-steps/crashing-inconsistent-emissions-missing-revert-data-errors)
5. [According to BlockPass, my KYC is approved, but the desktop app still says I am not approved. What should I do?](/xai-network/about-xai/sentry-key-purchase-and-setup/common-troubleshooting-steps/according-to-blockpass-my-kyc-is-approved-but-the-desktop-app-still-says-i-am-not-approved)
6. [I see "Transaction in progress" message after assigning my wallet. Did my wallet not get assigned?](/xai-network/about-xai/sentry-key-purchase-and-setup/common-troubleshooting-steps/i-see-transaction-in-progress-message-after-assigning-my-wallet.-did-my-wallet-not-get-assigned)


# How do I run a Xai Node on VPS?


# Step 1: Choose a VPS

Choose a VPS provider and purchase the package that matches the [minimum hardware requirements](/xai-network/about-xai/sentry-keys-explained/sentry-node-hardware-requirements). Make sure to select **Ubuntu 22.04** as your Operating System. The location of your VPS has no influence on whether you can pass the KYC or claim rewards.

Here are some VPS options (prices may vary based on your location and the plan you choose):

* [Racknerd](https://www.racknerd.com/)
* [Hostwinds](https://www.hostwinds.com/)
* [Digital Ocean](https://www.digitalocean.com/)

After your purchase, you’ll receive login details in your email.


# Step 2: Log in to a server

Follow these steps on on your laptop/PC:

1. Open a terminal window on your laptop or PC to enter commands

{% hint style="info" %}

* On Windows, open the program called Command Prompt.
* On Mac, open the program called Terminal.
  {% endhint %}

2. To connect to VPS, use the `ssh` command from your terminal:&#x20;

   <pre><code><strong>ssh $USER@$REMOTE_SERVER
   </strong></code></pre>

Example:

```
ssh root@706.437.14.562
```

{% hint style="info" %}
If you’re using Windows, the SSH Client is available starting from [Windows 10](https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview) version. For earlier versions, please use [PuTTY](https://www.putty.org/) or other alternatives.
{% endhint %}

3. When you log in the first time, you’ll see the following message:&#x20;

   ```
   The authenticity of host '$REMOTE_SERVER' can`t be established.
   ED25519 key fingerprint is SHA256:...
   This key is not known by any other names.
   Are you sure you want to continue connecting (yes/no/[fingerprint])?
   ```

Type `yes` and press `Enter`. This will prompt you to input a **password**. Note, all Linux systems don’t reveal passwords when you type them. Finish entering your password and click `Enter`.

{% hint style="info" %}
If your credentials are correct, you will see the following message:

```
Warning: Permanently added '$REMOTE_SERVER' (ECDSA) to the list of known hosts.
root@$REMOTE_SERVER`s password:
Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 4.4.0-169-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

0 packages can be updated.
0 updates are security updates.
```

{% endhint %}

{% hint style="success" %}
Going forward, any time you want to log in to your VPS via the terminal, enter the command:&#x20;

<pre><code><strong>ssh $USER@$REMOTE_SERVER
</strong></code></pre>

{% endhint %}


# Step 3: Set up Xai Sentry Node

1. Ensure your system is up to date by running the following command:&#x20;

   ```
   sudo apt update
   ```
2. Install the required dependencies, `curl` and `unzip`, using the following command:&#x20;

   ```
   sudo apt install curl unzip
   ```
3. Fetch the latest version of the Xai Command Line Interface (CLI) using `curl`:&#x20;

   ```
   curl -L -o sentry-node-cli-linux.zip https://github.com/xai-foundation/sentry/releases/latest/download/sentry-node-cli-linux.zip
   ```
4. Unzip the file:&#x20;

   ```
   unzip sentry-node-cli-linux.zip
   ```


# Step 4: Set up a Screen

[Screen](https://www.gnu.org/software/screen/manual/screen.html) will allow you to keep running the CLI even if you’re disconnected or you log out from your server.

1. Install screen:&#x20;

   ```
   sudo apt update && sudo apt install screen
   ```
2. Start a screen session:&#x20;

   ```
   screen -S xai
   ```

{% hint style="info" %}
This will open a screen session, create a new window, and start a shell in that window.

The first time you start a screen, you’ll see a page of license information. You can press the `Space` bar to read the second page or `Enter` to return to the command prompt.

To verify that you set up a Screen session, type `screen -ls` in a second terminal. You should see a message that looks as follows:

```
There is a screen on:
	82824.xai	(12/09/2023 11:04:52 AM)	(Attached)
1 Socket in /run/screen/@root.
```

{% endhint %}


# Step 5: Start Xai Sentry Node

1. Now that you set up a Screen, you can start Xai CLI:&#x20;

   ```
   ./sentry-node-cli-linux
   ```
2. To receive node rewards, boot your operator:&#x20;

   ```
   boot-operator
   ```
3. This will prompt you to enter the private key of your **sentry wallet**. Paste the key and press `Enter`.
4. Wait a few minutes until you see the following message:&#x20;

   ```
   The operator has finished booting. The operator is running successfully. esXAI will accrue every few days.
   Current timestamp: 2023-12-10T01:47:04.273Z. The operator is still running successfully. esXAI will accrue every few days.
   ```
5. Detach from your Screen session before logging out. You can detach from your current Screen session by **pressing**:

* `ctrl a + d` (Windows)
* `control a + d` (macOS)

or

```
screen -d <screen_id>
```

where `<screen_id>` is the numbers of your Screen session.

Example:

```
screen -d 82824
```

{% hint style="info" %}
Make sure to **Detach** before exiting the server. Detached mode allows you to exit your Screen session without closing or interrupting any processes that are happening within that session. That means that everything will keep running in the background even if you log out from your VPS.
{% endhint %}

6. You can now safely log out from your server:

```
logout
```


# Step 6: Monitor your Node via Screen

### Show all Screen sessions

To see all Screen sessions, type `screen -ls` . You should see a message that looks as follows:

```
There is a screen on:
	82824.xai	(12/09/2023 11:04:52 AM)	(Detached)
1 Socket in /run/screen/@root.
```

### Kill/Delete a Screen session <a href="#id-210-killdelete-a-screen-session" id="id-210-killdelete-a-screen-session"></a>

If you have multiple Screen sessions, you can kill the one you don’t need as follows:

```
screen -XS <screen_id> quit
```

> Replace the following values:\
> -`<screen_id>` - the id of your current Screen session\
> -Example: `screen -xs 82824 quit`

### Reattach to your Screen session <a href="#id-211-reattach-to-your-screen-session" id="id-211-reattach-to-your-screen-session"></a>

Anytime you want to see the logs from your node, you can reattach to that session as follows:

&#x20;Comment

```
screen -r <screen_id>
```

where `<screen_id>` is the numbers of your Screen session.

Example:

```
screen -r 82824
```

Note, currently you can’t see the rewards using the CLI. You need to install a desktop app for it. For more details refer to [this video](https://xai-foundation.gitbook.io/xai-network/xai-blockchain/sentry-node-purchase-and-setup/how-to-videos/command-line-interface-cli/track-accrued-esxai).

### Detach from your Screen session <a href="#id-28-detach-from-your-screen-session" id="id-28-detach-from-your-screen-session"></a>

You can detach from your current Screen session by **pressing**:

* `ctrl a + d` (Windows)
* `control a + d` (macOS)

or

```
screen -d <screen_id>
```

where `<screen_id>` is the numbers of your Screen session.

Example:

```
screen -d 82824
```

Make sure to **Detach** before exiting the server. Detached mode allows you to exit your Screen session without closing or interrupting any processes that are happening within that session. That means that everything will keep running in the background even if you log out from your VPS.

You can now safely log out from your server:

```
logout
```


# Step 7: Updating your node

Following these steps will help you set up and maintain your Xai Sentry Node effectively. Remember to regularly check for updates and monitor your node’s performance.

1. Login to your server using the `ssh` command from your terminal:

```
ssh $USER@$REMOTE_SERVER
```

2. Reattach to your Screen session:

```
screen -r <screen_id>
```

3. Replace the following values:\
   \- `<screen_id>` - the id of your current Screen session\
   \- Example: `screen -r 82824`
4. Stop the operator:

* `ctrl + c` (Windows)
* `control + c` (macOS)

5. Remove your current CLI:

```
rm sentry-node-cli-linux sentry-node-cli-linux.zip
```

7. Download the latest CLI.  You don't need to download the file on your computer since this command takes it from the GitHub website.

```
curl -L -o sentry-node-cli-linux.zip https://github.com/xai-foundation/sentry/releases/latest/download/sentry-node-cli-linux.zip
```

8. Unzip the file:

```
unzip sentry-node-cli-linux.zip
```

9. Start CLI:

```
./sentry-node-cli-linux
```

10. Boot the operator:

```
boot-operator
```

11. Paste the private key of your **Sentry Wallet** and press `Enter`.
12. Wait until the operator has finished booting and you see the following message:

```
The operator has finished booting. The operator is running successfully. esXAI will accrue every few days.
Health check complete, subscription to 'ChallengeSubmitted' is still active.
```

13. Detach from your Screen session:

* `ctrl a + d` (Windows)
* `control a + d` (macOS)

14. Logout from your server:

```
logout
```

{% hint style="info" %}
To KYC and view rewards, you need the desktop app, which is not covered in the CLI.
{% endhint %}


# How do I prevent others from using my Sentry Wallet or Operator?

{% tabs %}
{% tab title="Desktop App" %}
As of update v1.0.33, a Sentry Wallet owner can determine what wallets it operates on. To use this feature on the Desktop App, follow these steps:

1. Go to the Sentry Wallet page in the desktop app.
2. Click on Allowed Wallets. A drawer will appear on the right side of the desktop app showing a list of wallets that have been assigned to your Sentry Wallet.
3. Choose the wallets you want to allow your Sentry Wallet to operate on by checking the boxes next to those wallets.

{% hint style="info" %}

* If there are any wallets listed that you do not recognize, it is recommended that you uncheck the box next to that wallet.
* If the Sentry Wallet does not contain any Keys, it is recommended not to whitelist the Sentry Wallet.
* By allowing a wallet to be operated on by your Sentry, you are accepting the responsibility of paying the gas fee associated with submitting an assertion and claiming rewards.
  {% endhint %}

4. Click "Apply" at the bottom of the drawer.

{% hint style="info" %}

* After clicking "Apply," the Sentry will automatically restart.
* Any Keys associated with the allowed wallets will appear on the Sentry Wallet page.
* Any Keys associated with the wallet NOT allowed will no longer appear on the Sentry Wallet page.
  {% endhint %}
  {% endtab %}

{% tab title="CLI" %}
As of update v1.0.33, users can select which wallets to operate on. To use this feature in the CLI, follow these steps:

1. Run the `boot-operator` command. Then hit 'Enter'.
2. Enter the private key of the operator. Then hit 'Enter'.
3. You will be asked if you want to use a whitelist for the operator runtime. If you want to prevent others from utilizing your operator to pay the gas for operating their Keys, then enter "Y". Then hit 'Enter'.

{% hint style="info" %}
It is strongly recommended to have a whitelist for the operator runtime. The only time it may be acceptable to enter "N" when prompted in this step is if you do not care about paying the gas to operate someone else's Key(s).
{% endhint %}

4. Use the Up & Down arrow keys on your keyboard to navigate to the wallet you want to add to the whitelist, then hit Spacebar to select that wallet.

{% hint style="info" %}
It is recommended that you only whitelist the wallet(s) containing Key(s). If you see any wallets you do not recognize, it is recommended that you do not select those wallets.
{% endhint %}

4. After repeating Step 4 for each wallet you want to add to the whitelist, hit 'Enter'.
   {% endtab %}
   {% endtabs %}


# Why don't I see the KYC link on the desktop app?

If you do not see the KYC link in the "Actions Required" sidebar, it means you have not [whitelisted your wallets](/xai-network/about-xai/sentry-key-purchase-and-setup/common-troubleshooting-steps/how-do-i-prevent-others-from-using-my-sentry-wallet-or-operator). Whitelisting the wallets ensures that only the wallets you give permission to are allowed to be operated on by your Sentry Wallet. Once you complete the steps to whitelist your wallets, the KYC link will appear for each wallet you have whitelisted.

Here's what the KYC alert in the "Actions Required" sidebar looks like when you have not selected wallets to whitelist:

<figure><img src="/files/Ir3I06yLkCS9TrJa4Nm0" alt=""><figcaption></figcaption></figure>

Once you have selected the wallets you want to whitelist, you will see the KYC alert with the "Select your country" dropdown option and the "Begin KYC" button like this:

<figure><img src="/files/aDKebv5KUXwM3h9RMnyy" alt=""><figcaption></figcaption></figure>


# How do I know my Node is running in the CLI?

If you have already run the `boot-operator` command, you can scroll up in the CLI to see the `Started listener for new challenges`  message. If you see this it means your node is running properly.

If you do not see this message, then follow [these steps](https://xai-foundation.gitbook.io/xai-network/xai-blockchain/sentry-node-purchase-and-setup/step-3-complete-requirements-to-accrue-esxai/step-3b-start-the-sentry-wallet-a.k.a-operator) to run your node.


# How do I KYC if I'm using the CLI?

1. [Download and install the desktop app](/xai-network/about-xai/sentry-key-purchase-and-setup/step-2-download-and-run-the-xai-sentry-node).
2. Navigate to the Keys page.
3. Click "+Add wallet".
4. In the right sidebar, click Assign Wallet.
5. Assign your wallet using the web flow.
6. Return to the desktop app and click Start Sentry.
7. Click "Start KYC".
8. Select the country you reside in in the right sidebar.
9. Click "Start KYC" again.

You will be directed to the BlockPass website to continue the KYC process.


# How can I see my rewards?

{% hint style="info" %}
Node rewards are granted every hour to Keys that participate in a challenge. See more info [**here**](https://xai-foundation.gitbook.io/xai-network/xai-blockchain/sentry-node-purchase-and-setup/accruing-node-rewards).
{% endhint %}

You can see your accrued esXAI rewards in the desktop app. After you [download and install the desktop app](https://xai-foundation.gitbook.io/xai-network/xai-blockchain/sentry-node-purchase-and-setup/step-2-download-and-run-the-xai-sentry-node), follow these steps:

1. Navigate to the Keys page.
2. Click "+Add wallet".
3. In the right sidebar, enter the the public key of the wallet you want to view accrued esXAI for.
4. Click "Add Wallet".

You will see accrued esXAI rewards for each Key you add. You can also see the total esXAI at the top of the page.


# Crashing, inconsistent Emissions / missing revert data errors

This can be caused by running the `boot-operator` command too many times or by an unstable internet connection. Check the following to resolve these issues:

1. Check to make sure that you're running only one instance of the CLI. If you have multiple instances running, close all of them.
2. Check to make sure you're not running the Sentry on the desktop app at the same time as the CLI. If you are, pause the Sentry Wallet on the desktop app.
3. Make sure your internet connection is stable.

If all steps above are completed, then proceed to the following steps:

1. Close and reopen the CLI.
2. Run the `boot-operator` command.


# According to BlockPass, my KYC is approved, but the desktop app still says I am not approved

Check back in the Xai Node desktop app 24 hours after being approved by BlockPass. If your status in the app is still not approved, reach out our Telegram or Discord.

\
If you have failed KYC and you think you should not have, email <support@blockpass.org>.


# I see "Transaction in progress" message after assigning my wallet. Did my wallet not get assigned?

After clicking "Assign wallet" in the desktop app, you will be redirected to your web browser where you can connect the wallet containing the Keys. While you're on this page, the desktop app will display a "Transaction in progress" modal. When you complete assigning your wallet in the browser, you can click "Return to Xai Client" and it will direct you back to the desktop app. The "Transaction in progress" modal should go away and you should see a modal confirming the successful transaction. If the "Transaction in progress" modal is still visible after successfully assigning your wallet to the Sentry and returning from the web browser, you can close the modal. Then, proceed to the Sentry Wallet page, click "Pause Sentry" at the top, then click "Start Sentry". You should see your newly assigned wallet populate on this page.


# How do I delegate my Keys to another user's operator?

#### Here are the steps to delegate your keys to another user's operator:

1. Go to <https://sentry.xai.games/#/assign-wallet/**\\[insert-other-operator-public-address>]\*\* (be sure to edit this URL)
2. Click "Assign wallet to Sentry"
3. Sign the transaction

Then tell the other user to stop & restart their Sentry (or if they are using a CLI, ask them to run the boot-operator command again).

#### If you decide to no longer delegate your keys to that user's operator, you can use the steps below:

1. Go to <https://sentry.xai.games/#/unassign-wallet/**\\[insert-other-operator-public-address>]\*\* (be sure to edit this URL)
2. Click "Unassign wallet from Sentry"
3. Sign the transaction

Then tell the other user to stop & restart their Sentry (or if they are using a CLI, ask them to run the boot-operator command again).


# Why did my Accrued esXAI balance decrease?

There are two ways your Accrued esXAI balance may decrease and neither one is an issue:

1. If you [passed KYC](/xai-network/about-xai/sentry-key-purchase-and-setup/how-to-videos/desktop-client/claim-node-rewards-after-passing-kyc), you will begin claiming node rewards. When this happens, your **esXAI balance** will increase and your **Accrued esXAI (unclaimed)** balance will decrease by the corresponding amount.&#x20;
2. Your balance may also appear to decrease if you spam the refresh button on the Keys page. Each time you press this button it will take about 10 seconds per Key to fetch the data onchain and to populate the Keys dashboard with the Accrued esXAI. This number will count back up from 0, so wait at least 5 minutes until the loading status is replace with "Last Update: \[time/date stamp]".


# What are the legitimate contracts owned & operated by Xai Foundation?

Below is a list of the legitimate and relevant contracts for operating a Xai node:

**nodeLicenseAddress**: 0xbc14d8563b248B79689ECbc43bBa53290e0b6b66

**refereeAddress**: 0xfD41041180571C5D371BEA3D9550E55653671198

**esXaiAddress**: 0x4C749d097832DE2FEcc989ce18fDc5f1BD76700c

**xaiAddress**: 0x4Cb9a7AE498CEDcBb5EAe9f25736aE7d428C9D66

{% hint style="danger" %}
If you interact with any contracts aside from one of the 4 listed above, you should assume it is a scam. You should also inform a member of the Xai staff on Discord or Telegram to make them aware of the scam contract(s).
{% endhint %}

### Glossary:

**nodeLicenseAddress**: This is the node license contract where Sentry Keys are minted. This is the only contract you should interact with when minting Xai Sentry Keys to run a node.

**refereeAddress**: This is the referree contract which creates a new challenge, collects assertions from keyholders, and gives out rewards to participants of a challenge. This is the only contract you should receive esXAI rewards from for operating a node.

**esXaiAddress**: This is the esXAI token contract. Do not accept any esXAI tokens that are not part of this contract.

**xaiAddress**: This is the XAI token contract. Do not accept any XAI tokens that are not part of this contract.


# Why do I get an error for challenge 2012?

The following error message can be ignored for challenge 2012:

`Error submitting assertion for Sentry Key [X] to challenge 2012 - execution reverted`

This error occurs only for challenge 2012 because when the staking tiers were updated on 3/2/24, operators on the outdated version (1.1.3 and older) were still attempting to submit challenges which were invalid.&#x20;

A permanent fix for the error is underway. All rewards are working normally.


# How To Videos


# Desktop Client


# Download & Install Xai Node Desktop Client

{% embed url="<https://www.loom.com/share/ce07887a91ec42ae9dcc2776d106b73b?sid=8e38abc0-bf58-4433-b7d3-1fb2449fdd59>" %}


# Import & Start Your Sentry Wallet

{% embed url="<https://www.loom.com/share/db90a0aa61bf43549926efa4f93e9476?sid=1b689977-5c76-46f7-9356-957308fb4d1d>" %}


# Assign Wallets Containing Keys to the Sentry Wallet

{% embed url="<https://www.loom.com/share/5b8472fd429148f68be584ed02d0bb85?sid=26ecac47-fbd1-475e-9abc-a9520dc84507>" %}


# Fund Sentry Wallet with Arbitrum One ETH

{% embed url="<https://www.loom.com/share/b8ffddf0fccf4e369cbd3d83eb73546a?sid=0a99d990-4a05-40b3-bb51-1b56e0c29ee6>" %}


# Submit KYC

{% embed url="<https://www.loom.com/share/91bc71a080b14469af5b94d306e967d8?sid=95cc6ba1-0a12-4764-9820-70a4af950a18>" %}


# Claim Node Rewards after Passing KYC

{% embed url="<https://www.loom.com/share/d56bd90b39484899bac07d92f5615910?sid=5df858f6-8bef-4dce-b70c-2b9e39a2d48f>" %}


# Command Line Interface (CLI)


# Download & Install Xai Node CLI

{% embed url="<https://www.loom.com/share/9cef7c0ca2654e61a48fc0048ac30b4f?sid=5164935b-583e-4193-8d8c-fda843f72792>" %}


# Boot Operator & Interpret Status Logs

{% embed url="<https://www.loom.com/share/1386b893e6714aafbe077375a1700a69?sid=e91c3200-06da-4c34-84e2-c26d15548d86>" %}


# Add Custom Operator

{% embed url="<https://www.loom.com/share/a4fdb75f762f4c12823f3df7f2f987d1?sid=fd2ff957-0ffd-40f6-a256-7e45c20e3b7f>" %}




---

[Next Page](/xai-network/llms-full.txt/1)

