Complete guide to deploying and managing a high-performance 0G validator node with enterprise-grade reliability
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 |
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:
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget jq make gcc tmux unzip build-essential -y
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/
0gchaind init YOUR_NODE_NAME --chain-id zgtendermint_16600-2
0gchaind keys add wallet
⚠️ Securely backup your mnemonic phrase!
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
0gchaind status | jq .sync_info
0gchaind query staking validator $(0gchaind keys show wallet --bech val -a)
journalctl -fu 0gchaind -o cat
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)
sudo systemctl restart 0gchaind && sudo journalctl -u 0gchaind -f
0gchaind version
Should return: v0.5.0
Coming soon...
https://evm-0gchaind.onenov.xyz
https://rpc-0gchaind.onenov.xyz
https://api-0gchaind.onenov.xyz
https://grpc-0gchaind.onenov.xyz
# List all wallets
0gchaind keys list
# Recover wallet
0gchaind keys add wallet --recover
# Check balance
0gchaind q bank balances $(0gchaind keys show wallet -a)
# 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
# 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
https://docs.0g.ai/
https://github.com/0glabs/0g-chain
https://0g.ai/
https://t.me/0G_labs