Logo

🚀 OneNov Docs - 0g Labs Node Validator

Complete guide to set up and manage your 0g Labs Validator.

Node Status: Active Ubuntu: 22.04

0g Explorer


Requirement Minimum Recommended
OS Ubuntu 20.04+ Ubuntu 22.04+
CPU 6 Cores 8+ Cores
RAM 8GB 16GB+
Storage 500GB SSD/NVMe 1TB SSD/NVMe
Network 10 Mbit/s 100 Mbit/s+

Quick Installation

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

1. Create or Import a Wallet

Create New Wallet

0gchaind keys add mywallet

Save the mnemonic seed securely.

Import Existing Wallet

0gchaind keys add mywallet --recover

Check Wallet Address

0gchaind keys list
0gchaind keys show mywallet -a

Check Private EVM Key

0gchaind keys unsafe-export-eth-key wallet

2. Sync the Node

0gchaind status | jq .sync_info

If "catching_up": false, your node is fully synced.


3. Create a 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 "test" \
--identity "" \
--website "" \
--details "stake with me" \
--chain-id zgtendermint_16600-2 \
--gas-adjustment 1.5 --gas auto --gas-prices 0.00252ua0gi \
-y

📌 Replace --moniker="test" with your validator name.


4. Check Validator Status

0gchaind query staking validator $(0gchaind keys show wallet --bech val -a)
0gchaind query staking validators --limit=1000 -o json | jq '.validators[] | {moniker: .description.moniker, status: .status}'

5. Monitor Logs

journalctl -fu 0gchaind -o cat
systemctl status 0gchaind

6. Delegate More Tokens

0gchaind tx staking delegate $(0gchaind keys show mywallet --bech val -a) 1000000uog --from=mywallet --chain-id=zgtendermint_16600-2 --gas=auto

📌 Replace 1000000uog with the amount you want to delegate.


7. Unjail Validator (if Slashed)

0gchaind tx slashing unjail --from=wallet --chain-id=zgtendermint_16600-2 --gas=auto

8. Check Wallet Balance

0gchaind query bank balances $(0gchaind keys show wallet -a)

9. Withdraw Staking Rewards

0gchaind tx distribution withdraw-rewards $(0gchaind keys show mywallet --bech val -a) --from=wallet --commission --chain-id=zgtendermint_16600-2 --gas=auto

10. Unbond Your Validator (if Needed)

0gchaind tx staking unbond $(0gchaind keys show wallet --bech val -a) 1000000uog --from=mywallet --chain-id=zgtendermint_16600-2 --gas=auto

⚠️ After unbonding, your tokens will be locked for a certain period before they become available.


11. Restart & Stop Node

systemctl restart 0gchaind
systemctl stop 0gchaind

Summary

Complete guide from setup to validator management

Easy installation with bash <(curl -s ...)

Essential commands for monitoring and staking

🚀 Now your 0g Labs Validator is ready to run! 🚀