Become a Full Node Operator
This tutorial helps full node operators quickly synchronize with the Oraichain mainnet by downloading a storage snapshot prepared by the team. The downloading speed is much faster than synchronizing from the first block, which allows fast set up to join the network in no time!

Hardware specifications for an Oraichain node:

A dedicated node that can run Docker amd64.
Minimum requirements
1
The number of CPUs: 2vCPUs
2
RAM: 2GB
3
Storage: 200GB SSD
Copied!
Recommended requirements
1
The number of CPUs: 2vCPUs
2
RAM: 2GB
3
Storage: 200GB SSD
Copied!
Estimated cost for a node with minimum requirements using Digital Ocean: $25/month
droplet
disk

Setup the node

1. Download and run the setup file

1
curl -OL https://raw.githubusercontent.com/oraichain/oraichain-static-files/master/mainnet-static-files/docker-compose.fast.yml && curl -OL https://raw.githubusercontent.com/oraichain/oraichain-static-files/master/mainnet-static-files/orai.env && mv docker-compose.fast.yml docker-compose.yml
Copied!

2. Edit your moniker in the orai.env file you have just downloaded

3. Build and enter the container

With docker, your node can run on any platforms. As a result, it is a must to install and download Docker & docker-compose. Afterward, please type:
1
docker-compose pull && docker-compose up -d --force-recreate
Copied!

4. Initiate the node

Please enter the container and type:
1
oraid init "$MONIKER" --home /workspace/.oraid
Copied!
then, you need to download the network's genesis file by using the following command inside your container:
1
wget -O /workspace/.oraid/config/genesis.json https://raw.githubusercontent.com/oraichain/oraichain-static-files/master/mainnet-static-files/genesis.json
Copied!

5. Download Chain Data

Download the latest chain data from a snapshot provider. Select the tab to the desired node type (Default or Pruned). A Pruned node will have the smallest disk size possible, but it will only keep the latest network state, which is recommended for sentry, seed nodes & light clients. Meanwhile, a Default node will store more network state history, but it will have larger size, which is suitable for validators.
  • Default:
1
docker-compose exec orai bash -c 'wget -O - https://orai.s3.us-east-2.amazonaws.com/oraid-ms2-bk.tar.gz | tar -zxvf -'
Copied!
  • Pruned:
1
docker-compose exec orai bash -c 'wget -O - https://orai.s3.us-east-2.amazonaws.com/oraid-data-pruned-wasm-bk.tar.gz | tar -zxvf -'
Copied!
After extracting the chain data, you need to move such data into the .oraid/ directory:
1
docker-compose exec orai bash -c 'mv /workspace/data/* /workspace/.oraid/data && mv /workspace/wasm/ /workspace/.oraid && rmdir /workspace/data'
Copied!

6. Start the node

Please exit the container and follow the below steps to start the nodes

List of seed & sentry nodes that you can connect to

1
docker-compose restart orai && docker-compose exec -d orai bash -c 'oraivisor start --p2p.pex false --p2p.persistent_peers "<node-id1>@<pubclic-ip1>:26656,<node-id2>@<public-ip2>:26656"'
Copied!
If you do not specify the --p2p.persistent_peers flags, you must add at least a persistent peer connection in the .oraid/config/config.toml file before running the below command, otherwise your node will not be able to connect to the Oraichain network.
The above commands run as the background process so when you turn off your Terminal, it is still running. You can always run them in the foreground process by removing the "-d" flag.