installation
description: Setting up your validator node has never been so easy. Get your validator running in minutes by following step by step instructions.
Installation
Network name: Evmos | Chain ID: evmos_9001-2
| Latest version: v19.1.0
| Custom Port: 134
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.19.8.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/evmos/evmos evmos
cd evmos
git checkout v19.1.0
# Build binaries
make install
# Prepare binaries for Cosmovisor
mkdir -p $HOME/.evmosd/cosmovisor/genesis/bin
mv ~/go/bin/evmosd $HOME/.evmosd/cosmovisor/genesis/bin/
rm -rf build
Install Cosmovisor and create a service
# Download and install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.4.0
# Create service
sudo tee /etc/systemd/system/evmosd.service > /dev/null << EOF
[Unit]
Description=osmosis node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
WorkingDirectory=$HOME/.evmosd
Restart=always
RestartSec=5
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.evmosd"
Environment="DAEMON_NAME=evmosd"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
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 evmosd
Initialize the node
# Set node configuration
evmosd config chain-id evmos_9001-2
evmosd config node tcp://localhost:13457
# Initialize the node
evmosd init $MONIKER --chain-id evmos_9001-2
# Download genesis and addrbook
curl -Ls https://archive.evmos.org/mainnet/genesis.json > $HOME/.evmosd/config/genesis.json
curl -Ls https://snapshots.lavenderfive.com/addrbooks/evmos/addrbook.json > $HOME/.evmosd/config/addrbook.json
# Add seeds
seeds="babc3f3f7804933265ec9c40ad94f4da8e9e0017@seed.rhinostake.com:13456,7aa31684d201f8ebc0b1e832d90d7490345d77ee@52.10.99.253:26656,5740e4a36e646e80cc5648daf5e983e5b5d8f265@54.39.18.27:26656,588cedb70fa1d98c14a2f2c1456bfa41e1a156a8@evmos-sentry.mercury-nodes.net:29539,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@seeds.polkachu.com:13456,20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:13456,ebc272824924ea1a27ea3183dd0b9ba713494f83@evmos-mainnet-seed.autostake.com:26736,40f4fac63da8b1ce8f850b0fa0f79b2699d2ce72@seed.evmos.jerrychong.com:26656,86bd5cb6e762f673f1706e5889e039d5406b4b90@evmos.seed.node75.org:10756,8542cd7e6bf9d260fef543bc49e59be5a3fa9074@seed.publicnode.com:26656,ac009a9564d3471852795b5d703095a1d4b6a3e1@seed-evmos-01.stakeflow.io:1707,008175475229d09bcbbbe713c4e50faa85719c9e@seed-node.mms.team:37656,8f0364267437c746762af90e6ac550033553b399@seed.evmos.validatus.com:2000"
sed -i -e "s|^seeds *=.*|seeds = \"$seeds\"|" $HOME/.evmosd/config/config.toml
# Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"250000000aevmos\"|" $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:13458\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:13457\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:13460\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:13456\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":13466\"%" $HOME/.evmosd/config/config.toml
sed -i -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:13417\"%; s%^address = \":8080\"%address = \":13480\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:13490\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:13491\"%; s%:8545%:13445%; s%:8546%:13446%; s%:6065%:13465%" $HOME/.evmosd/config/app.toml
Start service and check the logs
sudo systemctl start evmosd && sudo journalctl -u evmosd -f --no-hostname -o cat
Sync
To catch up quickly, you can either use a snapshot or state sync
Last updated