☑️0G Validator Node
Recommended Hardware: 8 Cores, 64GB RAM, 500GB of storage (NVME)
Installation
Install dependencies, if needed
sudo apt update && \
sudo apt install curl git jq build-essential gcc unzip wget lz4 -yInstall go, if needed
cd $HOME && \
ver="1.22.0" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && \
source ~/.bash_profile && \
go versionBuild 0gchaind binary from source
git clone -b v0.3.0 https://github.com/0glabs/0g-chain.git
cd 0g-chain
make install
0gchaind versionSetup your variable settings
Initialize node & create home directory for .0gchain
Download genesis file
Set 0G chain seeds
Confirm your ports (These are standard values, feel free to edit port(s) you wish to use)
Set required variable in config.toml & app.toml for your node
Pruning (Optional to save storage space)
Set min gas price
Enable indexer
Create 0gd service for your node to run in the background
Start node
Check for your syncing progress
The result should be "catching_up": false when your node is fully synced
Result example
NodeGuru's explorer for checking latest block height here
Create wallet
Extract the 0x address and use it for receiving testnet token
Request for Testnet token
| Faucet | - use your 0x address to request
Check your wallet balance (node must be synced in order to see the current balance)
Result example - 1 A0GI = 1,000,000 ua0gi
Create validator
Once your validator is created you can look up your validator here. Most likely it will be in inactive set as you will need enough stake to reach top 125 TVL validator. This is normal ~~~
Run curl test to check for your RPC port if it's works properly
Result example
Current block height
Net version (evm chain-id)
Upgrade Your Node
At height 574000
Check log
Congratulation!!
Now you have completed your node for 0gchain and we will move on to creating your storage node next.
Last updated