Key | Value |
---|---|
Memory | 64 GB |
CPU | 8 cores |
Disk | 1 TB NVME SSD |
Bandwidth | 100 MBps |
git clone -b v0.2.3 https://github.com/0glabs/0g-chain.git
./0g-chain/networks/testnet/install.sh
source ~/.profile
0gchaind config chain-id zgtendermint_16600-2
0gchaind init <your_validator_name> --chain-id zgtendermint_16600-2
sudo apt install -y unzip wget
rm ~/.0gchain/config/genesis.json
wget -P ~/.0gchain/config https://github.com/0glabs/0g-chain/releases/download/v0.2.3/genesis.json
0gchaind validate-genesis
The format of the config.toml file is as follows:
[p2p]
# ...
# Comma separated list of seed nodes to connect to
seeds = "<node-id>@<ip>:<p2p port>"
[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656
0gchaind start
0gchaind keys add <key_name> --eth
0gchaind tx staking create-validator \
--amount=<staking_amount>ua0gi \
--pubkey=$(0gchaind tendermint show-validator) \
--moniker="<your_validator_name>" \
--chain-id=zgtendermint_16600-2 \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--from=<key_name> \
--gas=auto \
--gas-adjustment=1.4