XProtocol Xardian Node Setup on Linux VPS
This guide will walk you through the process of setting up an XProtocol Xardian on a Linux system. Please note that these instructions are provided for informational purposes only. While every effort has been made to ensure accuracy, no guarantees are made regarding the completeness or reliability of the information. Use this guide at your own risk, and be sure to back up your data before proceeding. For detailed support, refer to the official XProtocol documentation or contact XProtocol support.
Video tutorial
VPS Setup
My recommended VPS setup (sign-up using my referral link)
https://tidd.ly/3L9RiMw
Steps to Set Up Your XProtocol Xardian Node
Step 1: Update Your System Packages
It’s important to keep your system up-to-date before installing any software. Open your terminal and run the following command:
sudo apt update && sudo apt upgrade -y
This will update your system’s package list and install the latest versions of the packages installed on your machine.
Step 2: Install Required Dependencies
The Xardian node software requires the installation of screen to manage the node process effectively. To install screen, use the following command:
sudo apt install screen
Screen allows you to run processes in the background, which is especially useful for running the node continuously.
Step 3: Download the Xardian Node Software
Next, download the latest Xardian node software from XProtocol’s official GitHub repository. Run the following command:
wget https://github.com/xprotocol-org/xardian/releases/latest/download/runner.linux.amd64
This will download the node software to your current directory.
Step 4: Make the CLI Executable
After downloading, the next step is to make the downloaded file executable. Run the following command:
chmod +x runner.linux.amd64
This command will change the permissions on the file to allow it to be executed as a program.
Step 5: Create a Screen Session
To run the node in the background and keep it alive even if your terminal disconnects, create a screen session by running:
screen -S xardian
This command will create a new session named xardian within the screen program, keeping your node active.
Step 6: Run the Xardian Node Application
You can now run the Xardian node. Use the following command to start the node:
./runner.linux.amd64
This will initiate the Xardian node software.
Step 7: Initiate the Delegating Process
Once the node is running, you may need to delegate it as part of the setup. For delegation, execute the following command:
./runner.linux.amd64 delegate
Copy the URL generated for you and open it in your browser. Once on the XProtocol Node Dashboard, click “Connect Wallet” to link your wallet to the node. Remember to have some ETH on Base to cover for gas fees.
Note: If you already have an operator wallet, be sure to check the Bonus Tips section for instructions on how to import your existing wallet or export your operator wallet for backup.
Step 8: Complete the Delegating Process
Please take note of the operator wallet address that is generated for you, put in that address into the console and press enter. Afterwards, you will get a confirmation “Delegation Successful”
!Important: Please ensure that your wallet holding the XARDIAN node NFT has enough ETH on the Base network for the node delegation process. Additionally, the operator wallet generated for you must have a minimum of 0.005 ETH on the Base network to cover gas fees for claiming rewards.
Step 9: Start Your Node
Finally, to officially start the node and ensure it’s operational, run the following command:
./runner.linux.amd64 run
If your node is running successfully, you should see a similar text like below.
Note: Be sure to check the Bonus Tips section for instructions on how to export or backup your operator wallet.
Using Screen to Detach and Reattach
- To detach from the screen session (keeping your node running in the background), press Ctrl + A followed by D.
- To reattach to the session later, type:
screen -r xardian
This will bring you back into the screen session where the node is running.
Bonus TIPs:
Monitoring your rewards
To monitor your rewards, you can check your wallet using BaseScan (https://basescan.org/), where you should begin seeing $KICK rewards within a few hours. Alternatively, you can add the $KICK token directly to your wallet by importing the token using the contract address. The contract address can be found here: [XProtocol Contract Address](https://docs.xprotocol.org/x-protocol-litepaper/overview/xardian-nodes/how-to-run-nodes/faq#what-is-the-contract-address-for-the-nodes-and-other-legitimate-contracts-owned-and-operated-by-xard).
Importing an Existing Operator Private Key
To import an existing operator private key, use the following command: Run this command before step 7.
./runner.linux.amd64 import --key your-private-key
Make sure to replace your-private-key
with the private key of your operator wallet. The key details will be stored in the configuration file located at:
/root/.config/xardian.yaml
Retrieving or Backing Up Your Operator Wallet
If you need to find or back up your operator wallet, including the private key, this information is stored in the file:
/root/.config/xardian.yaml
To view the contents of this file, you can use the following command:
sudo cat /root/.config/xardian.yaml
This will display the necessary information about your operator wallet.
Conclusion
Congratulations! You’ve successfully set up and started an XProtocol Xardian node. The node will now continue running on your Linux machine, and you can monitor its activity or make adjustments through your screen session.
If you have any questions or encounter issues, feel free to reach out to me through my discord community or refer to their official documentation for further support.
Link to My Discord server:
https://bit.ly/DEPINspirationHUB-discord
Official guide from XProtocol
https://docs.xprotocol.org/x-protocol-litepaper/overview/xardian-nodes/how-to-run-nodes/vps-guide