Oraichain
Search
⌃K

Build Linux binary from source and become a Full Node Operator

Instruction to install the oraid binary in docker

Preresquites

Operating System

This tutorial assumes that your node is using Ubuntu 18.04 or 20.04. It does not work with Ubuntu 16.04

Go version

The Golang version should be from 1.18 and above

Make

If your node does not have Make, install using: apt update && apt install make

Gcc

You need to install Gcc to build the binary. Type: apt update && apt install gcc

Build the binary from source

# clone the Oraichain network repository
git clone https://github.com/oraichain/orai.git
# enter the repo
cd orai
# checkout the latest tag
git checkout <tag>
The <version-tag> will need to be set to either a testnet or the latest mainnet version tag.
The current mainnet version tag will be v0.41.1 - i.e:
git checkout v0.41.1
Next, you should be able to build the binary file using the below command:
# in orai dir
go get ./...
make build VERSION=0.41.1
To confirm that the installation has succeeded, you can run:
oraid version
The current binary version for Linux users is v0.41.1, the checksum value may vary due to go.mod being updated after go get ./...
Libwasmvm version: oraid query wasm libwasmvm-version, which should give: 1.1.2

Connecting to the network as a full-node operator

Init config

First, we need to initiate config files for the node:
oraid init foobar --chain-id Oraichain
The default directory of .oraid is located in $PWD, not $HOME like other Cosmos networks.

Update Genesis file

Next, replace the '.oraid/config/genesis.json' to the official genesis file of the Oraichain network:
wget -O $PWD/.oraid/config/genesis.json https://raw.githubusercontent.com/oraichain/oraichain-static-files/master/genesis.json

Download the network's snapshot

wget -O - <chain-dara-url> | tar -zxvf -
where <chain-data-url> can be found in Here
then move all data & wasm files into .oraid directory:
mv data/* .oraid/data && mv wasm/ .oraid

Choose persistent peers

To connect to the Oraichain network you can either run your own node or connect to a public node's RPC endpoint. To find a public node to connect to consider looking in the official chain registry of Cosmos. Connecting to a public node requires the least configuration but you should be sure that you trust whatever node that you choose.
Below are also several options you can choose from to connect to the network:

Start the node

oraid start --p2p.persistent_peers "<node-id1>@<pubclic-ip1>:26656,<node-id2>@<public-ip2>:26656"