Complete guide to set up and manage your 0g Labs Validator.
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+ |
bash <(curl -s https://raw.githubusercontent.com/OneNov0209/testnet-ibc/refs/heads/main/Ogchain/install.sh)
0gchaind keys add mywallet
✤ Save the mnemonic seed securely.
0gchaind keys add mywallet --recover
0gchaind keys list
0gchaind keys show mywallet -a
0gchaind keys unsafe-export-eth-key wallet
0gchaind status | jq .sync_info
If "catching_up": false
, your node is fully synced.
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.
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}'
journalctl -fu 0gchaind -o cat
systemctl status 0gchaind
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.
0gchaind tx slashing unjail --from=wallet --chain-id=zgtendermint_16600-2 --gas=auto
0gchaind query bank balances $(0gchaind keys show wallet -a)
0gchaind tx distribution withdraw-rewards $(0gchaind keys show mywallet --bech val -a) --from=wallet --commission --chain-id=zgtendermint_16600-2 --gas=auto
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.
systemctl restart 0gchaind
systemctl stop 0gchaind
✅ 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! 🚀