Hemi Network
Prerequisites
Operating System: Linux (Ubuntu 20.04/22.04 recommended)
Hardware Requirements:
CPU: 4+ cores
RAM: 16GB+
Storage: 500GB SSD+
Network: High-speed, stable internet connection with a static IP
Software Requirements:
Docker and Docker Compose
Git
Curl or Wget
Step 1: Update and Install Dependencies
Update your system and install necessary dependencies.
sudo apt update && sudo apt upgrade -y
sudo apt install -y curl git jq build-essential
Step 2: Install Docker
Install Docker and Docker Compose.
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Install Docker Compose
sudo apt install -y docker-compose
Verify Docker installation:
docker --version
docker-compose --version
Step 3: Clone Hemi Network Repository
Clone the official Hemi Network GitHub repository.
git clone https://github.com/HemiNetwork/hemi-core.git
cd hemi-core
Step 4: Configure Node
Generate the node configuration file.
cp config/default-config.yml config/config.yml
nano config/config.yml
Edit the config.yml
file to include your desired settings, such as:
Node Name: Choose a unique name for your validator.
Network Configuration: Ensure the correct network (testnet/mainnet) is specified.
Validator Key: You will generate this in the next step.
Step 5: Generate Validator Keys
Run the following command to generate your validator keys:
docker run --rm hemi-node generate-keys
This command will output a public/private key pair. Save these keys securely.
Step 6: Start the Validator Node
Create a docker-compose.yml
file to manage your node:
version: '3.8'
services:
hemi-node:
image: hemi-network/hemi-node:latest
container_name: hemi-validator
ports:
- "30303:30303" # Replace with the required ports
volumes:
- ./data:/data
environment:
- NODE_NAME=<Your Node Name>
- VALIDATOR_KEY=<Path to Your Validator Key>
restart: always
Start the validator node:
docker-compose up -d
Step 7: Verify Node Status
Check the logs to ensure your node is running correctly.
docker logs -f hemi-validator
Step 8: Stake Tokens
To become a validator, you need to stake the required amount of tokens. Follow the official staking documentation on Hemi Network or use their staking portal to delegate your tokens.
Step 9: Monitor and Maintain Your Node
Set up monitoring tools like Prometheus and Grafana to ensure your node remains healthy and performs well. Additionally, automate backups of your node's data and keys.
Useful Commands
Restart Node:
docker-compose restart
Stop Node:
docker-compose down
Check Node Logs:
docker logs -f hemi-validator
Last updated