Hardware Minimum requirements

- Memory: 8 GB RAM
- CPU: 4 cores
- Disk: 500 GB NVME SSD
- Bandwidth: 100mbps Gbps for Download / Upload
- Linux amd64 arm64 (The guide was tested on Ubuntu 20.04 LTS)
sudo apt update && sudo apt upgrade -y
sudo apt install make curl git wget htop unzip tmux build-essential jq make lz4 gcc unzip -y
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
cd $HOME
git clone -b v1.0.0-testnet https://github.com/0glabs/0g-evmos.git
source .profile
evmosd config keyring-backend test
evmosd config chain-id zgtendermint_9000-1
evmosd config node tcp://localhost:14257
evmosd init NodeName --chain-id zgtendermint_9000-1
sed -i \
  -e 's|^chain-id *=.*|chain-id = "zgtendermint_9000-1"|' \
  -e 's|^keyring-backend *=.*|keyring-backend = "test"|' \
  -e 's|^node *=.*|node = "tcp://localhost:14257"|' \
### downlaod genesis file
wget https://github.com/0glabs/0g-evmos/releases/download/v1.0.0-testnet/genesis.json -O $HOME/.evmosd/config/genesis.json

PEERS="1248487ea585730cdf5d3c32e0c2a43ad0cda973@peer-zero-gravity-testnet.trusted-point.com:26326" && \
SEEDS="8c01665f88896bca44e8902a30e4278bed08033f@,b288e8b37f4b0dbd9a03e8ce926cd9c801aacf27@,8e20e8e88d504e67c7a3a58c2ea31d965aa2a890@,e50ac888b35175bfd4f999697bdeb5b7b52bfc06@" && \
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.evmosd/config/config.toml
sed -i.bak -e "s%^proxy_app = \"tcp://\"%proxy_app = \"tcp://\"%; s%^laddr = \"tcp://\"%laddr = \"tcp://\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:14260\"%; s%^laddr = \"tcp://\"%laddr = \"tcp://\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":14266\"%" $HOME/.evmosd/config/config.toml
sed -i.bak -e "s%^address = \"tcp://localhost:1317\"%address = \"tcp://\"%; s%^address = \":8080\"%address = \":14280\"%; s%^address = \"localhost:9090\"%address = \"\"%; s%^address = \"\"%address = \"\"%; s%:8545%:14245%; s%:8546%:14246%; s%:6065%:14265%" $HOME/.evmosd/config/app.toml
###set gas
sed -i "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.00252aevmos\"/" $HOME/.evmosd/config/app.toml
sudo tee /etc/systemd/system/evmosd.service > /dev/null <<EOF
Description=evmosd Protocol
ExecStart=$(which evmosd) start --home $HOME/.evmosd
cd $HOME

sudo systemctl daemon-reload
sudo systemctl enable evmosd
sudo systemctl restart evmosd && sudo journalctl -u evmosd -f --no-hostname -o cat

Download Snapshot

Download latest snapshot from our endpoint

wget https://rpc-zero-gravity-testnet.trusted-point.com/latest_snapshot.tar.lz4

Stop the node

sudo systemctl stop evmosd

Reset DB

evmosd tendermint unsafe-reset-all --home $HOME/.evmosd --keep-addr-book

Extract files fromt the arvhive

lz4 -d -c ./latest_snapshot.tar.lz4 | tar -xf - -C $HOME/.evmosd

Re-start the node

sudo systemctl restart evmosd && sudo journalctl -fu evmosd -f -o cat

Check the synchronization status

evmosd status | jq .SyncInfo

Create a wallet for your validator

evmosd keys add wallet

Extract the HEX address to request some tokens from the faucet

echo "0x$(evmosd debug addr $(evmosd keys show $WALLET_NAME -a) | grep hex | awk '{print $3}')"

Request tokens from the faucet

-> FAUCET <-

Check wallet balance

evmosd q bank balances $(evmosd keys show wallet -a)

Note: The faucet gives you 100000000000000000aevmos. To make the validator join the active set you need at least 1000000000000000000aevmos (10 times more)

Create a validator

#set name for your validator
evmosd tx staking create-validator \
  --amount=10000000000000000aevmos \
  --pubkey=$(evmosd tendermint show-validator) \
  --moniker=$MONIKER \
  --chain-id=zgtendermint_9000-1 \
  --commission-rate=0.05 \
  --commission-max-rate=0.10 \
  --commission-max-change-rate=0.01 \
  --min-self-delegation=1 \
  --from=wallet \
  --identity="" \
  --website="" \
  --details="0G to the moon!" \
  --gas=500000 --gas-prices=99999aevmos \

Do not forget to save priv_validator_key.json file located in $HOME/.evmosd/config/

Last updated