bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 56쪽 중 6쪽
ss/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&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&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. 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&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&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 *"\_*expectedCostUSDC" 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&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&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
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. 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&token=c4b2a443-4ba1-4fa5-b5e2-34583b31e474" alt=""><figcaption></figcaption></figure>
8. Find the ETH(1) row. In the screenshot, the value 215.942123600761418936
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&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&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&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&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 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-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/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 & Fund the Sentry Wallet</td><td><a href="/xai-network/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 & 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/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/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/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/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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FmJBZj8Tyl9aZF1z7NHsi%2Fimage.png?alt=media&token=74a8d533-5293-4929-893f-12bf441bdb6a" 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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FCvve9GleXWbgTchk8v7G%2Fimage.png?alt=media&token=9c7996fe-b621-4990-80a8-b71a86e70735" 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-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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FVGHbPgHFVBgYkKdy3PFP%2Fimage.png?alt=media&token=4c9b3473-6557-44dd-8087-57e4f766c6aa" 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" %}
 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 tha프로젝트로 돌아가기