Xai 백서

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

d3c9e96d744b0a13e705d775ff162?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&amp;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&amp;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&amp;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&amp;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&amp;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/en/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/en/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&amp;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/en/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&amp;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&amp;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![](https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FZ4VtCGkyVDhkT8yHZahi%2FScreenshot%202024-12-18%20at%209.29.26%E2%80%AFam.png?alt=media\&token=ca7f37c1-f271-4cb0-a5cb-6e2ca275efab) 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&amp;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&amp;token=998b0f22-d7d9-451a-9a63-4ea5ec5335cb" 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2F3RwTTah16gZyxrFbDdsd%2FScreenshot%202024-12-14%20at%209.12.41%E2%80%AFam.png?alt=media&amp;token=fb63bc96-d178-4c96-9ded-8a828630a000" 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="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&amp;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![](https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FZ4VtCGkyVDhkT8yHZahi%2FScreenshot%202024-12-18%20at%209.29.26%E2%80%AFam.png?alt=media\&token=ca7f37c1-f271-4cb0-a5cb-6e2ca275efab) 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&amp;token=060e6517-e7f1-4f11-979c-2bdc5521bb0d" 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2F7sKdCX9rrpfZs2Fu9HW5%2FScreenshot%202024-12-18%20at%209.48.14%E2%80%AFam.png?alt=media&amp;token=806b7272-5d56-42c0-9d58-c24eb2e271e9" 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="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&amp;token=998b0f22-d7d9-451a-9a63-4ea5ec5335cb" 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2Fm2OQW8f1JH55Wqdr34wo%2FScreenshot%202024-12-14%20at%208.58.42%E2%80%AFam.png?alt=media&amp;token=60266873-67eb-493c-aa4b-98300ba39e12" 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="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&amp;token=943ae9e0-6643-46c5-822b-17b807909b14" 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![](https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FZ4VtCGkyVDhkT8yHZahi%2FScreenshot%202024-12-18%20at%209.29.26%E2%80%AFam.png?alt=media\&token=ca7f37c1-f271-4cb0-a5cb-6e2ca275efab) 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&amp;token=060e6517-e7f1-4f11-979c-2bdc5521bb0d" 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FihWXPGNqtFxYyScrMMoC%2FScreenshot%202024-12-18%20at%2011.28.44%E2%80%AFam.png?alt=media&amp;token=c4b2a443-4ba1-4fa5-b5e2-34583b31e474" alt=""><figcaption></figcaption></figure> 8. Find the ETH(1) row. In the screenshot, the value 215.942123600761418936![](https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FPTB5izIdjZVIMO2IKwxe%2FScreenshot%202024-12-18%20at%2011.27.46%E2%80%AFam.png?alt=media\&token=670663bb-f017-46b7-9681-6eb7de9823bb) 9. 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&amp;token=060e6517-e7f1-4f11-979c-2bdc5521bb0d" 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="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&amp;token=998b0f22-d7d9-451a-9a63-4ea5ec5335cb" 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FA4zCRQUGdopar4mwRz13%2FScreenshot%202024-12-14%20at%208.58.50%E2%80%AFam.png?alt=media&amp;token=2fc3f744-8a22-40af-ad7e-2b1fa8a01ff7" 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 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" %} 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="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FkdI82NOKq2BtFwMnnfmz%2Fimage.png?alt=media&amp;token=3f7a2f53-0c0e-405f-b8fb-a4f1ce8fde06" 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 setti
프로젝트로 돌아가기