Oraichain

ORAI CHAIN

New Validator Node Setup on Oraichain using fast snapshots

Latest Version Information

Fetching latest version...

Step 1: Install necessary updates

This setup targets a normal user with sudo privileges.

sudo apt update && sudo apt upgrade -y
sudo apt install git curl wget tar lz4 unzip jq build-essential pkg-config clang bsdmainutils make ncdu -y

Step 2: Install Go

Login as your user and install Go. If successful, go version will print a version number.

cd
version="1.23.1"
wget "https://golang.org/dl/go$version.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz"
rm "go$version.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile

go version

Step 3: Install and configure Oraichain

Clone and build Oraichain.

cd
git clone https://github.com/oraichain/orai orai
cd orai
git checkout v0.42.3
cd orai
go mod tidy
make install

Step 4: Initialize Oraichain node

Initialize your node and download the genesis.

cd
oraid init NodeName --chain-id Oraichain
wget -O $HOME/.oraid/config/genesis.json "https://raw.githubusercontent.com/oraichain/oraichain-static-files/master/genesis.json"

Step 5: Configure seed nodes

Set official seeds.

SEEDS="e18f82a6da3a9842fa55769955d694f62f7f48bd@seed1.orai.zone:26656,893f246ffdffae0a9ef127941379303531f50d5c@seed2.orai.zone:26656,4fa7895fc43f618b53cd314585b421ee47b75639@seed3.orai.zone:26656,defeea41a01b5afdb79ef2af155866e122797a9c@seed4.orai.zone:26656"
sed -i -e "s|^seeds *=.*|seeds = \"$SEEDS\"|" $HOME/.oraid/config/config.toml

Step 6: Setup systemd service

Create the service unit file.

sudo nano /etc/systemd/system/oraid.service

Paste the following (replace USER with your Linux username), then save.

[Unit]
Description=Oraid Daemon
#After=network.target
StartLimitInterval=350
StartLimitBurst=10

[Service]
Type=simple
User=USER
ExecStart=/home/USER/go/bin/oraid start --home /home/USER/.oraid
Restart=always
RestartSec=30

[Install]
WantedBy=multi-user.target

[Service]
LimitNOFILE=1048576

Step 7: Download and apply snapshot

Use the official hourly snapshot to sync faster!

  Loading snapshot command...
  

Step 8: Start and enable the service

Start now and ensure it runs on boot.

sudo systemctl daemon-reload
sudo systemctl restart systemd-journald
sudo systemctl start oraid
sudo systemctl enable oraid
journalctl -fu oraid
Copied to clipboard!