Installation

Chain ID: athens_7001-1Latest Version Tag: v22.0.0

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 wget htop tmux build-essential jq make lz4 gcc unzip
sudo apt -qy upgrade

Install Go

sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.21.9.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
wget -O $HOME/zetacored https://github.com/zeta-chain/node/releases/download/v22.0.0/zetacored-linux-amd64
chmod +x $HOME/zetacored 
mv $HOME/zetacored $HOME/go/bin

# Create service

sudo tee /etc/systemd/system/zetacored.service > /dev/null «EOF [Unit] Description=Zetachain node After=network-online.target [Service] User=$USER WorkingDirectory=$HOME/.zetacored ExecStart=$(which zetacored) start –home $HOME/.zetacored Restart=on-failure RestartSec=5 LimitNOFILE=65535 [Install] WantedBy=multi-user.target EOF


### Initialize the node

```bash
# Set node configuration
zetacored config chain-id athens_7001-1
zetacored config keyring-backend file

# Initialize the node
zetacored init $MONIKER --chain-id zetachain_7000-1

# Download genesis and addrbook
curl -Ls https://github.com/dvjromashkin/guides/raw/refs/heads/main/zetachain-main/testnet/genesis.json > $HOME/.zetacored/config/genesis.json
curl -Ls https://github.com/dvjromashkin/guides/raw/refs/heads/main/zetachain-main/testnet/addrbook.json > $HOME/.zetacored/config/addrbook.json

# Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0azeta\"|" $HOME/.zetacored/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/.zetacored/config/app.toml

### Start service and check the logs

```bash
sudo systemctl start zetacored && sudo journalctl -u zetacored -f -o cat