This guide will detail the Orai Full Node setup process. We will manually compile the binaries, setup systemd services, configure the node, and setup oraivisor.

We suggest starting with a newly installed Ubuntu 22.04 system preferably on a dedicated host machine.

sudo apt update && sudo apt upgrade -y

Install make, gcc , and jq

sudo apt install jq make gcc snapd -y

Install Go

snap install go --channel 1.20/stable --classic

Download wasm file

wget https://github.com/CosmWasm/wasmvm/releases/download/v0.13.0/libwasmvm_muslc.a -O /lib/libwasmvm_muslc.a

Setup the systemd service.

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

[Service]
User=orai
ExecStart=/home/orai/go/bin/oraivisor start --home /home/orai/.oraid
Restart=always
RestartSec=3
LimitNOFILE=4096
Environment="DAEMON_NAME=oraid"
Environment="DAEMON_HOME=/home/orai/.oraid"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="DAEMON_LOG_BUFFER_SIZE=512"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="USER=orai"
Environment="MONIKER=test1_moniker"
Environment="CHAIN_ID=Oraichain"
Environment="AMOUNT=2000000orai"
Environment="COMMISSION_RATE=0.10"
Environment="COMMISSION_MAX_RATE=1"
Environment="COMMISSION_MAX_CHANGE_RATE=0.02"
Environment="MIN_SELF_DELEGATION=100"
Environment="GAS=auto"
Environment="GAS_ADJUSTMENT=1.15"
Environment="GAS_PRICES=0.0000025orai"
Environment="SECURITY_CONTACT=efg"
Environment="IDENTITY=node"
Environment="WEBSITE=xyx.com"
Environment="LOG_LEVEL=error"
Environment="DETAILS=helloworld"

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable oraivisor

Create a new user account

useradd -U -s /bin/bash -m -d /home/orai orai
usermod -a -G sudo orai
passwd orai

Add go to the users environment and log in

echo "export PATH=$PATH:/usr/local/go/bin:/home/orai/go/bin" >> /home/orai/.bashrc && su orai

Compile the binaries and copy to the correct path

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

cd $HOME/orai && git checkout v0.41.4 && cd oraivisor && go mod tidy && make build

cp oraivisor $HOME/go/bin/
cp ~/go/bin/oraid /home/orai/.oraid/oraivisor/genesis/bin/

Create oraivisor folders

mkdir -p /home/orai/.oraid/oraivisor/genesis/bin
mkdir -p /home/orai/.oraid/oraivisor/upgrades

Download and execute this script to configure State Sync

wget -O /tmp/state_sync.sh https://raw.githubusercontent.com/oraichain/orai/update/statesync-prod/scripts/prod_statesync.sh
chmod +x /tmp/state_sync.sh
/tmp/state_sync.sh

The state sync script will finish configuring the node and start oraid. Stop the oraid process with cntl+c then start it with systemd

cntl+c
systemctl start oraivisor

You have now completed the Oraichain Full Node Setup Guide.

We were unable to find an equivalent build method for oraid or oraivisor elsewhere so we developed this method to better suit our needs.

Questions? contact us

ImStaked Orai Validator Details
Orai Explorer – Validators