MitchelNode
  • MitchelNode
  • Althea
  • Haqq
  • Kroma
  • BounceBit
  • Babylon
  • Allora
  • Dill
Powered by GitBook
On this page
  • Step 1: Prepare the Server
  • Step 2: Install Dependencies
  • Step 3: Install Go
  • Step 4: Install the Node
  • Step 5: Initialize the Node
  • Step 6: Configure Settings
  • Step 7: Start the Node

Haqq

Setting up a Haqq node involves several steps. Follow this guide to successfully install and configure your node.

Step 1: Prepare the Server

  • Ensure your server meets the minimum requirements:

    • RAM: 4 GB

    • SSD: 100 GB

  • Use an operating system such as Ubuntu 20.04 or newer.

Step 2: Install Dependencies

Install the necessary dependencies:

sudo apt update && sudo apt upgrade -y
sudo apt install curl git jq -y

Step 3: Install Go

Download and install Go version 1.21.1:

sudo rm -rvf /usr/local/go/
wget https://golang.org/dl/go1.21.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz
rm go1.21.1.linux-amd64.tar.gz

Add Go to your PATH:

echo "export GOROOT=/usr/local/go" >> ~/.profile
echo "export GOPATH=$HOME/go" >> ~/.profile  
echo "export GO111MODULE=on" >> ~/.profile
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.profile
source ~/.profile

Step 4: Install the Node

Clone the repository and install the node:

git clone https://github.com/haqq-network/haqq haqq
cd haqq
git checkout v1.7.6
make install

Step 5: Initialize the Node

Initialize your node with a unique moniker:

haqqd init <your-moniker> --chain-id haqq_11235-1

Download the genesis file:

wget -O genesis.json https://snapshots.polkachu.com/genesis/haqq/genesis.json --inet4-only
mv genesis.json ~/.haqqd/config

Step 6: Configure Settings

Add the seed node to the configuration:

sed -i 's/seeds = ""/seeds = "[email protected]:20456"/' ~/.haqqd/config/config.toml

Step 7: Start the Node

Create a systemd service:

sudo tee /etc/systemd/system/haqqd.service > /dev/null <<EOF
[Unit]
Description="Haqq Node"
After=network-online.target

[Service]
User=$USER
ExecStart=/usr/local/bin/haqqd start
Restart=always
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
EOF

Enable and start the service:

sudo systemctl daemon-reload
sudo systemctl enable haqqd
sudo systemctl start haqqd

Check the logs:

sudo journalctl -fu haqqd -o cat

PreviousAltheaNextKroma

Last updated 9 months ago

Page cover image