Xai 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 56쪽 중 43쪽

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></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="warning" %} * The recommended max quantity per transaction is 100 keys. Purchasing more than 100 keys in a single transaction will likely fail due to gas limits on Arbitrum One. * There is no limit to the number of 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. {% endhint %} {% @supademo/embed demoId="3EMrhqjPMuCw\_CODJh-d0" url="<https://app.supademo.com/demo/3EMrhqjPMuCw_CODJh-d0>" %} # 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 Keys page in the desktop application. <figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/OxD5IoP0UHmZ8GhtxRGF/image.png" alt="" width="143"><figcaption></figcaption></figure> 2. Click "Purchase Keys" on the Keys page. <figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/8uFS3JiVhHKN3SRTe7H9/image.png" alt="" width="375"><figcaption></figcaption></figure> 3. Enter your desired quantity. {% hint style="warning" %} * The recommended max quantity per transaction is 100 keys. Purchasing more than 100 keys in a single transaction will likely fail due to gas limits on Arbitrum One. 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 %} <div align="center"><figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/zyDXgMhJsQwuDULDtH2c/image.png" alt="" width="309"><figcaption></figcaption></figure></div> 4. Enter a promo code (if you have one). <div align="center"><figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/GDOBX7Be23S5dnkil1s2/image.png" alt="" width="309"><figcaption></figcaption></figure></div> 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 the xai.games domain. Check that you are on xai.games whenever purchasing Xai Sentry Keys. {% endhint %} <div align="center"><figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/wIJgTxB5TfONhv2qz0Il/image.png" alt="" width="309"><figcaption></figcaption></figure></div> 6. Complete the remaining steps using the guide below: {% @supademo/embed demoId="mkRyp8eTNZByn6edaoyi8" url="<https://app.supademo.com/demo/mkRyp8eTNZByn6edaoyi8>" %} # Option 3: Buy Sentry Key via Xai Sentry Node CLI (command line interface) #### After [downloading the Xai Sentry Node CLI](/xai-network/kn/about-xai/sentry-key-setup/step-1-download-and-run-the-xai-sentry-node) (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/kn/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://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/E4eOcoAThfPEmjcwnpQV/image.png" 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/kn/about-xai/xai-2/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://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/qpS46rkzApjtLgvbuNfB/image.png" alt=""><figcaption></figcaption></figure> # Option 4: Buy Sentry Key via Node License Contract on Arbiscan 1. Go to the Node License contract on Arbiscan: {% embed url="<https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#readProxyContract>" %} 2. Scroll down to the "17. price" function at the bottom of the page. 3. Enter the number of Keys you want to purchase to get the price. <figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/hIjQbWtMdMCBphXmvpUU/image.png" alt=""><figcaption></figcaption></figure> 3. Grab the number next to uint256. In this example, copy the value 220986939450000000. 4. Enter the number into the "Wei" field of the converter tool: {% embed url="<https://eth-converter.com/>" %} 5. Copy the value in the Ether field. In this example, 0.22098693945. <figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/JEWbsuxWVjtobLhBwHht/image.png" alt=""><figcaption></figcaption></figure> 6. Go back to the Node License contract on Arbiscan: <https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract> 7. Connect your Web3 wallet. <figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/VWIpRY6eOCMH2GWg0wqS/image.png" alt=""><figcaption></figcaption></figure> 8. Click "5. mint" <figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/Qc250YvflMC4WCLsjYYJ/image.png" alt=""><figcaption></figcaption></figure> 9. Paste in the value from Step 6 into the "mint" field. 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. Click Write. 12. Approve the transaction in your wallet. # Step 1: 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" %} 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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/ZfqRBcnDkKM21Gbrfeqn/image.png" 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/kn/about-xai/sentry-key-setup/step-2-complete-requirements-to-accrue-esxai/step-2b-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/kn/about-xai/sentry-keys-explained/sentry-node-hardware-requirements) to see minimum specs required to run a Sentry Node. {% endhint %} # Step 2: 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="/xai-network/kn/about-xai/sentry-key-setup/step-2-complete-requirements-to-accrue-esxai/step-2a-set-up-and-fund-the-sentry-wallet">Step 2a: Set Up &amp; Fund the Sentry Wallet</a></td></tr><tr><td><strong>Step 3b:</strong> Activate the Sentry Wallet (a.k. Operator)</td><td><a href="/xai-network/kn/about-xai/sentry-key-setup/step-2-complete-requirements-to-accrue-esxai/step-2b-start-the-sentry-wallet-a.k.a-operator">Step 2b: Start the Sentry Wallet (a.k.a Operator)</a></td></tr><tr><td><strong>Step 3c:</strong> Assign Keys to the Sentry Wallet</td><td><a href="/xai-network/kn/about-xai/sentry-key-setup/step-2-complete-requirements-to-accrue-esxai/step-2c-assign-keys-to-the-sentry-wallet">Step 2c: Assign Keys to the Sentry Wallet</a></td></tr></tbody></table> # Step 2a: 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/kn/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). * 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/kn/about-xai/sentry-key-setup/step-2-complete-requirements-to-accrue-esxai/step-2a-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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/ZSzz08vjKADE99nZ8JxK/image.png" 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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/clfswmtCSEn75MtS42lj/image.png" 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/kn/about-xai/sentry-key-setup/step-2-complete-requirements-to-accrue-esxai/step-2b-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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/hMwBbhUgoClLajJcWUcd/image.png" 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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/VjbNOgu4v3MfSNlDWcSZ/image.png" alt="" width="185"><figcaption></figcaption></figure></div> 2. Click the three-dot menu button. <div align="center"><figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/zlBgZCtqHODOhUrRYjqa/image.png" alt="" width="375"><figcaption></figcaption></figure></div> 3. Click "Import Sentry Wallet". <div align="center"><figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/8TH0atMRacXpMkmXKejL/image.png" 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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/7d0j0GhkaswJjdgWTu8r/image.png" alt="" width="305"><figcaption></figcaption></figure></div> 5. Click "Confirm Import". <div align="center"><figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/8srChUVfEvNAxbnxLv4J/image.png" 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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/J0iunZwzNEyxwZka7gGQ/image.png" alt="" width="375"><figcaption></figcaption></figure> # Step 2b: 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/kn/about-xai/sentry-key-setup/step-2-complete-requirements-to-accrue-esxai/step-2c-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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/5A4oUoYZRsueQvXNnvs9/image.png" 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/kn/about-xai/sentry-key-setup/step-2-complete-requirements-to-accrue-esxai/step-2b-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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/3W9u7KW521wPwM4bfXa8/image.png" alt=""><figcaption></figcaption></figur
프로젝트로 돌아가기