Chain ID Latest Version Tag Custom Port
evmos_9000-4 v16.0.0-rc5 167

Setup validator name

Replace YOUR_MONIKER_GOES_HERE with your validator name

MONIKER="YOUR_MONIKER_GOES_HERE"

Install dependencies

Update system and install build tools

sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade

Install Go

sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.20.14.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)

Download and build binaries

# Clone project repository
cd $HOME
rm -rf evmos
git clone https://github.com/tharsis/evmos.git
cd evmos
git checkout v16.0.0-rc5

# Build binaries
make build

# Prepare binaries for Cosmovisor
mkdir -p $HOME/.evmosd/cosmovisor/genesis/bin
mv build/evmosd $HOME/.evmosd/cosmovisor/genesis/bin/
rm -rf build

# Create application symlinks
sudo ln -s $HOME/.evmosd/cosmovisor/genesis $HOME/.evmosd/cosmovisor/current -f
sudo ln -s $HOME/.evmosd/cosmovisor/current/bin/evmosd /usr/local/bin/evmosd -f

Install Cosmovisor and create a service

# Download and install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0

# Create service
sudo tee /etc/systemd/system/evmos.service > /dev/null << EOF
[Unit]
Description=evmos node service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.evmosd"
Environment="DAEMON_NAME=evmosd"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.evmosd/cosmovisor/current/bin"

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable evmos.service

Initialize the node

# Set node configuration
evmosd config chain-id evmos_9000-4
evmosd config keyring-backend test
evmosd config node tcp://localhost:16757

# Initialize the node
evmosd init $MONIKER --chain-id evmos_9000-4

# Download genesis and addrbook
curl -Ls https://snapshots.kjnodes.com/evmos-testnet/genesis.json > $HOME/.evmosd/config/genesis.json
curl -Ls https://snapshots.kjnodes.com/evmos-testnet/addrbook.json > $HOME/.evmosd/config/addrbook.json

# Add seeds
sed -i -e "s|^seeds *=.*|seeds = \"3f472746f46493309650e5a033076689996c8881@evmos-testnet.rpc.kjnodes.com:16759\"|" $HOME/.evmosd/config/config.toml

# Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0atevmos\"|" $HOME/.evmosd/config/app.toml

# Set pruning
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
  $HOME/.evmosd/config/app.toml

# Set custom ports
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:16758\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:16757\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:16760\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:16756\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":16766\"%" $HOME/.evmosd/config/config.toml
sed -i -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:16717\"%; s%^address = \":8080\"%address = \":16780\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:16790\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:16791\"%; s%:8545%:16745%; s%:8546%:16746%; s%:6065%:16765%" $HOME/.evmosd/config/app.toml

Start service and check the logs

sudo systemctl start evmos.service && sudo journalctl -u evmos.service -f --no-hostname -o cat