Run a Farmer/Storage Node on Storx Network
This guide will instruct you how to set up Farmer/Storage Node on StorX Network
Preliminaries
- Running a Storage Node on a live network is a responsible job. The credibility of the complete network depends upon the performance of Farmer/Storage Nodes.
- If there are any issues the possibility of your node getting slashed.
- To compensate for the efforts, running a community memes are rewarded with SRX Tokens, knowing that you contribute to the security of a decentralized network while growing your stash.
If you need help, please reach out on the Community Page. The community members are there to help answer questions and provide tips from experience.
How many SRX (StorX Native Tokens) do I need?
To qualify for Farmer/Storage Node on StorX Network, you need between 1000 - 1 Million SRX, with the existential deposit, plus XDC for transaction fees.
Warning:
Any SRX that you stake for Farmer/Storage Node on StorX Network is liable to be slashed, meaning that an insecure or improper setup may result in loss of reputation leading to slashing of Farmer/Storage Node on StorX Network.
Requirements
The most common way for a beginner to run a validator is on a cloud server running Linux. You may choose whatever VPS provider that you prefer, and whatever operating system you are comfortable with. For this guide we will be using Ubuntu 20.04 64-bit or higher, but the instructions should be similar for other platforms.
The storage operations on Farmer/Storage Node on StorX were benchmarked on standard hardware. It is recommended that you run at least the standard hardware in order to ensure they are able to process all storage requirements. The following are not minimum requirements but if you decide to run with less than this beware that you might have performance issues.
- One Processor Core
- Minimum 1 TB of available disk space
- Minimum 10 TB of available bandwidth a month
- Minimum upload speed of 25 MBPS
- Minimum download speed of 25 MBPS
- Ensure Node availability 24/7
Key Management
- Private keys are the central primitive of any cryptographic system and need to be handled with extreme care.
- Loss of your private key can lead to irreversible loss of value.
Method 1:- Setup STORX Farmer node Bootstrap Script
Bootstrap Command STORX Node Setup :-
sudo su -c "bash <(wget -qO- https://raw.githubusercontent.com/StorXNetwork/StorX-Node/main/bootstrap.sh)" root
Examples :-
root……..:~# sudo su -c "bash <(wget -qO- https://raw.githubusercontent.com/StorXNetwork/StorX-Node/main/bootstrap.sh)" root
Please enter your XDC Address for StorX Rewards:- xdc……
Method 2:- Setup STORX Farmer Node Docker
-
Operating System: Ubuntu 20.04 64-bit or higher Should be facing internet directly with public IP & without NAT
-
Tools: Docker, Docker Compose(1.29.2+) Setup (For Ubuntu 20.04 64-bit or higher Operating System)
Clone repository
git clone https://github.com/StorXNetwork/StorX-Node
Enter StorX-Node directory
cd StorX-Node
Step 1: Install docker & docker-compose
sudo bash ./install_docker.sh
Step 2: Update .env file with details
- Create
.envfile by using the sample -.env.example - Enter either your StorX Rewards address in the WALLETADD field.
cp env.example .env
nano .env
Step 3: Start your Node
For Mainnet Run:
sudo docker-compose -f docker-services.yml up -d
To stop the node or if you encounter any issues use::
sudo docker-compose -f docker-services.yml down
Step 4: Stake SRX token
After setting up FarmNode/StorageNode please Stake SRX token from the URL : https://farmer.storx.io/
IMP Note : You have to stake SRX token to get hosting and staking rewards.
To check the status of your node:
sudo bash ./getstatus.sh
How to upgrade your storx node with latest changes?
git pull
sudo bash ./upgrade.sh
Public discussions on the technical issues, post articles and request for Enhancements and Technical Contributions.