bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 56쪽 중 44쪽
e>
{% 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/kn/about-xai/sentry-key-setup/step-2-complete-requirements-to-accrue-esxai/step-2a-set-up-and-fund-the-sentry-wallet), type in the command `get-public-key-from-private-key`. Then hit 'Enter'.
<figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/YuhkTYjci3wM4Q3xCYzm/image.png" alt=""><figcaption></figcaption></figure>
# Step 2c: 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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/XXF6ARPoHCEzX6U8j0XO/image.png" alt="" width="185"><figcaption></figcaption></figure></div>
2. Click "Assign keys from new wallet"
<div align="center"><figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/FbHgSMzNCruyjGoW8IWG/image.png" 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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/yggN8NbzcWaYHXjBvSRZ/image.png" 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 3: 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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/h2gPbBWlKeeqIFBAeqyu/image.png" alt=""><figcaption></figcaption></figure>
4. Scroll down to the list of wallets 
<figure><img src="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/4ZxlgeMHWvP7DKpdZRsY/image.png" 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/kn/about-xai/sentry-key-setup/step-3-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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/EDyZHB0gQug8baNWXXlq/image.png" 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="https://content.gitbook.com/content/neke8a6D4Ybg9dkRA2GD/blobs/lknFJMp3WmGIEkWoJSU6/image.png" 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/kn/about-xai/sentry-key-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/kn/about-xai/sentry-key-setup/common-troubleshooting-steps/how-do-i-kyc-if-im-using-the-cli)
3. [How can I see my rewards?](/xai-network/kn/about-xai/sentry-key-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/kn/about-xai/sentry-key-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/kn/about-xai/sentry-key-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/kn/about-xai/sentry-key-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/kn/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.
---
[Next Page](https://xai-foundation.gitbook.io/xai-network/llms-full.txt/5)
# 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: 
<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: 
```
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: 
<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: 
```
sudo apt update
```
2. Install the required dependencies, `curl` and `unzip`, using the following command: 
```
sudo apt install curl unzip
```
3. Fetch the latest version of the Xai Command Line Interface (CLI) using `curl`: 
```
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: 
```
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: 
```
sudo apt update && sudo apt install screen
```
2. Start a screen session: 
```
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: 
```
./sentry-node-cli-linux
```
2. To receive node rewards, boot your operator: 
```
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: 
```
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:
 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/kn/about-xai/sentry-key-setup/common-troubleshooting-steps/how-do-i-prevent-others-fr프로젝트로 돌아가기