bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 56쪽 중 7쪽
n 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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FtXosNY0212blBPMalawh%2Fimage.png?alt=media&token=069fad21-3512-412b-abfc-a84ccc5bdb6e" alt="" width="185"><figcaption></figcaption></figure></div>
2. Click the three-dot menu button.
<div align="center"><figure><img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2F3CNemnrnPHENqkJT6phf%2Fimage.png?alt=media&token=daf6c9d4-7b84-4f3d-83b9-b289fa661ff8" alt="" width="375"><figcaption></figcaption></figure></div>
3. Click "Import Sentry Wallet".
<div align="center"><figure><img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FIko7qHAJSGSNBI6ILwkJ%2Fimage.png?alt=media&token=22ecda2e-2887-4fdd-aa25-f8f82285d930" 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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2Ft4Onw4ZlIQW7omxIu8Ho%2Fimage.png?alt=media&token=4269b8a4-f385-4454-abee-4e35bce51cc5" alt="" width="305"><figcaption></figcaption></figure></div>
5. Click "Confirm Import".
<div align="center"><figure><img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FAVmWfKIZJQ0ezI0SipIB%2Fimage.png?alt=media&token=c781cddf-5f7b-4e18-94ed-453d8f38d99e" 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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FzOXetRYP5jK4dUrqhoYJ%2Fimage.png?alt=media&token=83cf1d44-eb9e-4efe-9f16-fc8fe242adf6" 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/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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FCifaLIvzyet1fMVy8vBt%2Fimage.png?alt=media&token=245d1f00-733d-40b9-b77a-315798813af4" 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/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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2F3n1AzyOfByf6zJPYErhz%2Fimage.png?alt=media&token=3271804e-338c-4dec-bf51-afd46e1c9996" alt=""><figcaption></figcaption></figure>
{% 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/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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FNzacL66jJYa4Zkdjns0T%2Fimage.png?alt=media&token=3cdfc5f9-daa0-46b7-85e0-303dc97e4235" 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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FXYoXZoiucJfrfFkFF4wR%2Fimage.png?alt=media&token=dda2e425-f165-4ffe-bc82-350c948d4950" alt="" width="185"><figcaption></figcaption></figure></div>
2. Click "Assign keys from new wallet"
<div align="center"><figure><img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2Fu74UtRJP8yYK3zXAd7Od%2Fimage.png?alt=media&token=e38be15c-657a-44c6-8e11-d52b6fb41778" 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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FUcjanjWFUGzKW7duXrjA%2Fimage.png?alt=media&token=45a38266-53a3-45c4-9e48-9237b5204ff8" 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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FtYAwBkeyL2jAJe55vjWI%2Fimage.png?alt=media&token=6e703429-ffe3-472d-8030-58856044c733" alt=""><figcaption></figcaption></figure>
4. Scroll down to the list of wallets 
<figure><img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FAiL3LPoAffiWQ1QzFmpg%2Fimage.png?alt=media&token=e39c3215-624f-4e5b-819f-2420544c6c11" 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/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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FvglqWn6D84TdymapZ3zS%2Fimage.png?alt=media&token=c0fa1072-918d-4e75-82b9-93d2ad1692c7" 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://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FNaxhvufEWJRtXn6I1Xvi%2Fimage.png?alt=media&token=839054af-cba6-45d1-95db-86fd3f0d1822" 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/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/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/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/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/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/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/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.
# 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: `scree프로젝트로 돌아가기