Build Linux binary from source and become a Full Node Operator
Instruction to install the oraid binary in docker
This tutorial assumes that your node is using Ubuntu 18.04 or 20.04. It does not work with Ubuntu 16.04
The Golang version should be from 1.18 and above
If your node does not have Make, install using:
apt update && apt install make
You need to install Gcc to build the binary. Type:
apt update && apt install gcc
# clone the Oraichain network repository
git clone https://github.com/oraichain/orai.git
# enter the repo
# checkout the latest tag
git checkout <tag>
<version-tag>will need to be set to either a testnet or the latest mainnet version tag.
The current mainnet version tag will be
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:
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 ./...
oraid query wasm libwasmvm-version, which should give: 1.1.2
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.
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
wget -O - <chain-dara-url> | tar -zxvf -
then move all data & wasm files into .oraid directory:
mv data/* .oraid/data && mv wasm/ .oraid
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:
[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]com:26656
oraid start --p2p.persistent_peers "<node-id1>@<pubclic-ip1>:26656,<node-id2>@<public-ip2>:26656"