Omax Documentation

Last updated: June 05, 2023
  • Network Name: OMAX mainnet
  • RPC URL: https://mainapi.omaxray.com
  • Chain ID: 311
  • Symbol: OMAX
  • Block Explorer URL: https://omaxscan.com
  • Explorer: https://omaxscan.com

OS: Ubuntu 20.04

Config: 4x CPU

16GB RAM

20GB Primary G2 SSD Hard Disk

1000GB g3 encrypted SSD

Elastic IP

Create Ubuntu 20.04 instance in AWS Account

Open AWS-> select agreed region-> search for EC2-> click EC2 services as shown below

screenshot

Select security group

screenshot

Click create security group fill the required fields ie name, description and click add rule to create inbound rules

screenshot

Enable all TCP and UDP communication for Port 8545,30303 and 22.

screenshot

Select Instances-> click Launch instances

screenshot

Select below AMI

screenshot

Select instance type

screenshot

Create the Key pair and keep this key pair safely

screenshot

Click Select existing security group and select newly created validator security group as shown below.

screenshot

Update storage info by selecting 2 storages

  • 30GB primary gp2 not Encrypted
  • 1TB Secondary for Blockchain data gp3 Encrypted

And click Launch instance as shown below.

screenshot

Once the server is ready, Open newly created instance from AWS web connect or SSH client

screenshot

Search for Elastic IP services from AWS search bar and select Elastic Ips menu

screenshot

Click Allocate Elastic IP address as shown below

screenshot

Click Allocate to create new Elastic IP as shown below

screenshot

Assign the newly created Elastic IP’s to the newly created OMAX AWS servers as shown below

screenshot
Mount 1TG hard disk to the system using the below command
                                    
sudo mkdir /data sudo chmod 755 data sudo cp /etc/fstab /etc/fstab.orig
Use the blkid command to find the UUID of the device
                                    
sudo blkid sudo nano /etc/fstab
Add the following entry. PUT YOU UUID, and save using CTRL+O
                                    
UUID=ba6c791b-4d93-4523-bcd7-444dd9d48c18 /data xfs defaults,nofail 0 2
To check the size
                                    
df -h
To view the directory and space
                                    
lsblk
Check disk status
                                    
file -s /dev/xvdb mkfs -t xfs /dev/xvdb sudo mount /dev/xvdb /data
Restart the server and view the mounted disk using the below command
                                    
df -h
Go to mounted 1TB directory using the following command
                                    
cd /data
Install prerequisites software’s to configure OMAX blockchain validator node
                                    
sudo apt update; sudo apt install default-jre default-jdk; sudo apt install unzip; sudo apt install screen; sudo apt update ; sudo apt-get install libjemalloc-dev sudo curl -L "https://github.com/docker/compose/releases/download/v2.10.1/docker-compose-$(uname -s)-$(uname - m)" -o /usr/local/bin/docker-compose sudo apt update; sudo curl -sSL https://get.docker.com/ | sh
Get validator setup
                                    
curl https://omaxcoin.com/node/omaxvnode.zip -L -o OmaxNode.zip Unzip OmaxNode.zip
Go to the directory and run below listed commands as shown below.
                                    
cd OmaxNode ./pre-setup.sh
screenshot

Enter your wallet private key inside key folder and Key file as shown below

screenshot

Provide required permission the file director and update your private key on key file using text editor

                                    
cd key vi key
Run screen command and follow steps
  • Screen
  • Enter space button
Run node using below command
  • ./run.sh
screenshot
Run node using below command
  • ./enode.sh
View Index