0G LABS VALIDATOR

0G Storage Node Setup

Complete guide to deploying and managing a high-performance 0G validator node with enterprise-grade reliability

NETWORK STATUS: ACTIVE

System Requirements

Component Minimum Recommended
OS Ubuntu 20.04 Ubuntu 22.04 LTS
CPU 8 Cores 16 Cores (AMD EPYC/Ryzen)
RAM 16GB 32GB DDR4
Storage 1TB NVMe SSD 2TB NVMe SSD (Gen4)
Network 100Mbps 1Gbps Dedicated

One-Click Installation

For fastest deployment, run this single command which will handle all setup automatically:

bash <(curl -s https://raw.githubusercontent.com/OneNov0209/testnet-ibc/refs/heads/main/Ogchain/install.sh)

The script will:

  • Install all dependencies
  • Configure the 0G node
  • Set up systemd service
  • Download and apply the latest snapshot
  • Start the node automatically

Manual Installation

Step 1: Install Dependencies

sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget jq make gcc tmux unzip build-essential -y

Step 2: Install Binary

mkdir -p $HOME/go/bin
curl -LO https://github.com/0glabs/0g-chain/releases/download/v0.1.0/0gchaind_linux_amd64.tar.gz
tar -xvf 0gchaind_linux_amd64.tar.gz
rm 0gchaind_linux_amd64.tar.gz
chmod +x 0gchaind
mv 0gchaind $HOME/go/bin/

Step 3: Initialize Node

0gchaind init YOUR_NODE_NAME --chain-id zgtendermint_16600-2

Validator Configuration

Create Wallet

0gchaind keys add wallet

⚠️ Securely backup your mnemonic phrase!

Create Validator

0gchaind tx staking create-validator \
--amount 1000000ua0gi \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(0gchaind tendermint show-validator) \
--moniker "YOUR_MONIKER" \
--identity "" \
--website "" \
--details "Stake with OneNov" \
--chain-id zgtendermint_16600-2 \
--gas-adjustment 1.5 --gas auto --gas-prices 0.00252ua0gi \
-y

Essential Commands

Check Sync Status

0gchaind status | jq .sync_info

Check Validator Status

0gchaind query staking validator $(0gchaind keys show wallet --bech val -a)

Monitor Logs

journalctl -fu 0gchaind -o cat

Upgrade Binary

Download and Install New Binary

cd $HOME
rm -rf 0g-chain
wget -O 0gchaind https://github.com/0glabs/0g-chain/releases/download/v0.5.0/0gchaind-linux-v0.5.0
chmod +x $HOME/0gchaind
sudo mv $HOME/0gchaind $(which 0gchaind)

Restart Service

sudo systemctl restart 0gchaind && sudo journalctl -u 0gchaind -f

Verify Version

0gchaind version

Should return: v0.5.0

Sync/Snapshot

Coming soon...

Public API/RPC Endpoints

RPC Endpoint

https://evm-0gchaind.onenov.xyz

RPC Endpoint

https://rpc-0gchaind.onenov.xyz

API Endpoint

https://api-0gchaind.onenov.xyz

gRPC Endpoint

https://grpc-0gchaind.onenov.xyz

CLI Cheatsheet

Wallet Operations

# List all wallets
0gchaind keys list

# Recover wallet
0gchaind keys add wallet --recover

# Check balance
0gchaind q bank balances $(0gchaind keys show wallet -a)

Node Management

# Start node
sudo systemctl start 0gchaind

# Stop node
sudo systemctl stop 0gchaind

# Restart node
sudo systemctl restart 0gchaind

# Check logs
journalctl -fu 0gchaind -o cat

Staking Operations

# Delegate to validator
0gchaind tx staking delegate [validator-address] [amount]ua0gi --from wallet --chain-id zgtendermint_16600-2

# Withdraw rewards
0gchaind tx distribution withdraw-all-rewards --from wallet --chain-id zgtendermint_16600-2

# Unbond from validator
0gchaind tx staking unbond [validator-address] [amount]ua0gi --from wallet --chain-id zgtendermint_16600-2