✔️Zeta chain
Clone project repository
cd && rm -rf node
git clone https://github.com/zeta-chain/node
cd node
git checkout v18.0.0
Build binary
make install
Set node CLI configuration
zetacored config chain-id zetachain_7000-1
zetacored config keyring-backend file
zetacored config node tcp://localhost:22557
Initialize the node
zetacored init "Your Node Name" --chain-id zetachain_7000-1
Download genesis and addrbook files
curl -L https://snapshots.nodejumper.io/zetachain/genesis.json > $HOME/.zetacored/config/genesis.json
curl -L https://snapshots.nodejumper.io/zetachain/addrbook.json > $HOME/.zetacored/config/addrbook.json
Set seeds
sed -i -e 's|^seeds *=.*|seeds = "20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:22556,1d41d344d3370d2ba54332de4967baa5cbd70a06@rpc.zetachain.nodestake.org:666,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@seeds.polkachu.com:22556,8d93468c6022fb3b263963bdea46b0a131d247cd@34.28.196.79:26656,637077d431f618181597706810a65c826524fd74@zetachain.rpc.nodeshub.online:22556"|' $HOME/.zetacored/config/config.toml
Set minimum gas price
sed -i -e 's|^minimum-gas-prices *=.*|minimum-gas-prices = "20000000000azeta"|' $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-interval *=.*|pruning-interval = "17"|' \
$HOME/.zetacored/config/app.toml
Change ports
sed -i -e "s%:1317%:22517%; s%:8080%:22580%; s%:9090%:22590%; s%:9091%:22591%; s%:8545%:22545%; s%:8546%:22546%; s%:6065%:22565%" $HOME/.zetacored/config/app.toml
sed -i -e "s%:26658%:22558%; s%:26657%:22557%; s%:6060%:22560%; s%:26656%:22556%; s%:26660%:22561%" $HOME/.zetacored/config/config.toml
Download latest chain data snapshot
curl "https://snapshots.nodejumper.io/zetachain/zetachain_latest.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.zetacored"
Create a service
sudo tee /etc/systemd/system/zetacored.service > /dev/null << EOF
[Unit]
Description=ZetaChain node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which zetacored) start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Start the service and check the logs
sudo systemctl daemon-reload
sudo systemctl enable zetacored.service
sudo systemctl start zetacored.service
sudo journalctl -u zetacored.service -f --no-hostname -o cat
Last updated