bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 56쪽 중 5쪽
nd 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. 
{% 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. 
* A Challenge is created approximately once every hour. This means there will be \~720 Challenges per month. 
* 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). 
* 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 Setup
This section provides an in-depth guide on how to run a Xai Sentry Node and how to setup the node to generate rewards.
Here are the 3 primary steps:
1. [Download & Run the Xai Sentry Node](/xai-network/about-xai/sentry-key-setup/step-1-download-and-run-the-xai-sentry-node)
2. [Complete Requirements to Accrue esXAI](/xai-network/about-xai/sentry-key-setup/step-2-complete-requirements-to-accrue-esxai)
3. [Complete KYC to Claim esXAI](/xai-network/about-xai/sentry-key-setup/step-3-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-setup/step-2-complete-requirements-to-accrue-esxai/step-2a-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="/xai-network/about-xai/sentry-key-setup/step-1-purchase-a-sentry-key/option-1-buy-sentry-key-via-the-website">Option 1: Buy Sentry Key via the website</a></td></tr><tr><td align="center"><strong>Option 2:</strong> Using Sentry App</td><td><a href="/xai-network/about-xai/sentry-key-setup/step-1-purchase-a-sentry-key/option-2-buy-sentry-key-via-xai-sentry-node-desktop-app">Option 2: Buy Sentry Key via Xai Sentry Node desktop app</a></td></tr><tr><td align="center"><strong>Option 3:</strong> Using the CLI</td><td><a href="/xai-network/about-xai/sentry-key-setup/step-1-purchase-a-sentry-key/option-3-buy-sentry-key-via-xai-sentry-node-cli-command-line-interface">Option 3: Buy Sentry Key via Xai Sentry Node CLI (command line interface)</a></td></tr><tr><td align="center"><strong>Option 4:</strong> Mint via Arbiscan</td><td><a href="/xai-network/about-xai/sentry-key-setup/step-1-purchase-a-sentry-key/option-4-buy-sentry-key-via-node-license-contract-on-arbiscan">Option 4: Buy Sentry Key via Node License Contract on Arbiscan</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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FU7uI0xGUfp00VhwpZSxZ%2Fimage.png?alt=media&token=dae339db-4e00-4044-b8ef-73411f284f2f" alt=""><figcaption></figcaption></figure>
2. Click "Purchase Keys" on the Home page.
<figure><img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FlW0ZonXB7lAjMOHb1VCe%2Fimage.png?alt=media&token=b6aa5e44-4963-4186-a871-3054da47b479" 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FJvySv4e2orqL2mSu6X1H%2Fimage.png?alt=media&token=4c87aa9b-4993-4c0f-a939-6dc9c9316ab6" alt="" width="268"><figcaption></figcaption></figure>
4. Enter a promo code (if you have one).
<figure><img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2F0VvlDInxvWfsAUcFST2O%2Fimage.png?alt=media&token=e01a5818-0772-4695-8bf9-ca27bede7a8d" 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FWxt4Ob4XXz4lXjlXedW6%2Fimage.png?alt=media&token=6866b6b6-7a02-42a5-beb3-a486e7ea7c24" 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-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-setup/step-2-complete-requirements-to-accrue-esxai/step-2a-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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2F5HD4fHA3k7UBAFbUUYtv%2Fimage.png?alt=media&token=a0a72b52-b1ae-4054-bbce-aa92d17ac67c" 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2Fl8DUN8hvN8sGmcSZtPOl%2Fimage.png?alt=media&token=ed5a7422-8740-4e0e-8ec6-72db7dadac3c" 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FTYtRaza3NoQjIx1xIvXJ%2FScreenshot%202024-12-18%20at%209.29.05%E2%80%AFam.png?alt=media&token=943ae9e0-6643-46c5-822b-17b807909b14" 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
6. Click on the Copy value button <img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FQZZZhNxDJKcNEvRoDcSN%2FScreenshot%202024-12-14%20at%208.51.41%E2%80%AFam.png?alt=media&token=060e6517-e7f1-4f11-979c-2bdc5521bb0d" 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FovedagwbhvtYWJMSIIDf%2FScreenshot%202024-12-14%20at%209.07.03%E2%80%AFam.png?alt=media&token=998b0f22-d7d9-451a-9a63-4ea5ec5335cb" alt="" width="375"><figcaption></figcaption></figure>
9. Call the mint function <https://arbiscan.io/addre프로젝트로 돌아가기