Run a node
Run a node
If you would like to run your own node and verify the integrity of the Omchain infrastructure, you can follow the guide below. Please keep in mind that validators on the Omchain network don't get any validating/mining incentives.
Recommended Specs
2vCPUs
4GB RAM
100GB Disk space
Coinstore Exchange
Ubuntu 22.04
Get Started
Once you start with a fresh server, run the following commands shown below;
sudo apt-get update
sudo apt-get install default-jre
sudo apt-get install unzip
wget https://hyperledger.jfrog.io/hyperledger/besu-binaries/besu/22.10.3/besu-22.10.3.zip
unzip besu-22.10.3.zip
The above commands will download and extract besu to your working directory. After that move into that directory with cd besu-22.10.3.zip
command.
Then create a genesis.json file with the command nano genesis.json
and paste the following genesis info into it.
Then CTRL+X for exit, and when nano prompts for saving the contents hit Y and when it asks for the name of the file hit ENTER
Now create a screen named besu with the following command to run Besu instance on the screen;
screen -S besu
And after that run the following command to start your instance, the node will start synching shortly
After the node starts synching, you can hit CTRL+A and then D to exit the screen.
Notes
You can configure your data path with the --data-path
variable and choose where you would like to store the blockchain data.
You can enable/disable RPC HTTP with --rpc-http-enabled
command.
You can choose which APIs you would like to provide by setting --rpc-http-api
parameter as you wish.
For more information please read the official BESU documentation here;
Last updated