Mainnet

Chain ID: zetachain_7000-1 | Node Version: v12.2.1

 

https://restake.nodestake.org/zetachain

Auto-compound(every 1 hour),NodeStake will pay the gas fees

Node Installation Guide

Update system and install build tools

sudo apt update

sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y

Install Go

rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.20.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version

Install Node

cd $HOME

rm -rf zetachain

git clone https://github.com/zeta-chain/node.git

cd node

git checkout v12.2.1

make install
zetacored version

Initialize Node

Replace NodeName with your own moniker.

zetacored init NodeName --chain-id=zetachain_7000-1

Download Genesis

curl -Ls https://ss.zetachain.nodestake.org/genesis.json > $HOME/.zetacored/config/genesis.json 

Download addrbook

curl -Ls https://ss.zetachain.nodestake.org/addrbook.json > $HOME/.zetacored/config/addrbook.json

Create Service

sudo tee /etc/systemd/system/zetacored.service > /dev/null <<EOF
[Unit]
Description=zetacored Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which zetacored) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable zetacored

Download Snapshot(optional)

SNAP_NAME=$(curl -s https://ss.zetachain.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss.zetachain.nodestake.org/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.zetacored

Launch Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

If you have any questions, please reach out to our Discord

 

https://rpc.zetachain.nodestake.org

 

https://api.zetachain.nodestake.org

 

https://grpc.zetachain.nodestake.org:443

Chain Name: Zetachain
RPC: https://jsonrpc.zetachain.nodestake.org/
Chain ID: 7000
Symbol: ZETA
Explorer: https://explorer.zetachain.com/

https://ss.zetachain.nodestake.org/genesis.json

Download Genesis File

curl -Ls https://ss.zetachain.nodestake.org/genesis.json > $HOME/.zetacored/config/genesis.json 

1d41d344d3370d2ba54332de4967baa5cbd70a06@rpc.zetachain.nodestake.org:666

Set Seed Node

seed="1d41d344d3370d2ba54332de4967baa5cbd70a06@rpc.zetachain.nodestake.org:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.zetacored/config/config.toml

Restart Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

https://ss.zetachain.nodestake.org/addrbook.json

Download Addrbook

curl -Ls https://ss.zetachain.nodestake.org/addrbook.json > $HOME/.zetacored/config/addrbook.json 

Restart Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

Set Peers

peers=$(curl -s https://ss.zetachain.nodestake.org/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.zetacored/config/config.toml

Restart Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

Stop Node And Reset

sudo systemctl stop zetacored

zetacored tendermint unsafe-reset-all --home ~/.zetacored/ --keep-addr-book

Configure State Sync

SNAP_RPC="https://rpc.zetachain.nodestake.org:443"

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \

BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \

TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH

 

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \

s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \

s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \

s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" ~/.zetacored/config/config.toml

more ~/.zetacored/config/config.toml | grep 'rpc_servers'

more ~/.zetacored/config/config.toml | grep 'trust_height'

more ~/.zetacored/config/config.toml | grep 'trust_hash'

Restart Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

We make the node snapshot every 12h

Install lz4

sudo apt update

sudo apt-get install snapd lz4 -y

Stop Node and Reset Date

sudo systemctl stop zetacored

cp $HOME/.zetacored/data/priv_validator_state.json $HOME/.zetacored/priv_validator_state.json.backup

rm -rf $HOME/.zetacored/data

zetacored tendermint unsafe-reset-all --home ~/.zetacored/ --keep-addr-book

Download Snapshot

SNAP_NAME=$(curl -s https://ss.zetachain.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss.zetachain.nodestake.org/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.zetacored

mv $HOME/.zetacored/priv_validator_state.json.backup $HOME/.zetacored/data/priv_validator_state.json

Restart Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

Get old Snapshots

If you have any questions, please reach out to our Discord

Contact us for price

Name *
E-mail *
Network *

Testnet

Chain ID: athens_7001-1 | Node Version: v12.1.0

Node Installation Guide

Update system and install build tools

sudo apt update

sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y

Install Go

rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.20.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version

Install Node

cd $HOME

mkdir -p $HOME/go/bin

wget https://github.com/zeta-chain/node/releases/download/v12.1.0/zetacored-linux-amd64

mv zetacored-linux-amd64 zetacored

chmod +x zetacored

cp zetacored $HOME/go/bin/

zetacored version

Initialize Node

Replace NodeName with your own moniker.

zetacored init NodeName --chain-id=athens_7001-1

Download Genesis

curl -Ls https://ss-t.zetachain.nodestake.org/genesis.json > $HOME/.zetacored/config/genesis.json 

Download addrbook

curl -Ls https://ss-t.zetachain.nodestake.org/addrbook.json > $HOME/.zetacored/config/addrbook.json

Create Service

sudo tee /etc/systemd/system/zetacored.service > /dev/null <<EOF
[Unit]
Description=zetacored Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which zetacored) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable zetacored

Download Snapshot

SNAP_NAME=$(curl -s https://ss-t.zetachain.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss-t.zetachain.nodestake.org/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.zetacored

Launch Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

If you have any questions, please reach out to our Discord

 

https://rpc-t.zetachain.nodestake.org

 

https://api-t.zetachain.nodestake.org

 

https://grpc-t.zetachain.nodestake.org:443

Chain Name: Zeta Testnet
RPC: https://jsonrpc-t.zetachain.nodestake.org/
Chain ID: 7001
Symbol: ZETA
Explorer: 

https://ss-t.zetachain.nodestake.org/genesis.json

Download Genesis File

curl -Ls https://ss-t.zetachain.nodestake.org/genesis.json > $HOME/.zetacored/config/genesis.json 

https://ss-t.zetachain.nodestake.org/addrbook.json

Download Addrbook

curl -Ls https://ss-t.zetachain.nodestake.org/addrbook.json > $HOME/.zetacored/config/addrbook.json 

Restart Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

e5f57aabdd014d3f95e6476f670908c5a0025cbb@rpc-t.zetachain.nodestake.org:666

Set Seed Node

seed="e5f57aabdd014d3f95e6476f670908c5a0025cbb@rpc-t.zetachain.nodestake.org:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.zetacored/config/config.toml

Restart Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

Set Peers

peers=$(curl -s https://ss-t.zetachain.nodestake.org/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.zetacored/config/config.toml

Restart Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

Stop Node And Reset

sudo systemctl stop zetacored

zetacored tendermint unsafe-reset-all --home ~/.zetacored/ --keep-addr-book

Configure State Sync

SNAP_RPC="https://rpc-t.zetachain.nodestake.org:443"

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \

BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \

TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH

 

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \

s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \

s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \

s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \

s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" ~/.zetacored/config/config.toml

more ~/.zetacored/config/config.toml | grep 'rpc_servers'

more ~/.zetacored/config/config.toml | grep 'trust_height'

more ~/.zetacored/config/config.toml | grep 'trust_hash'

Restart Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

We make the node snapshot every 12h

Install lz4

sudo apt update

sudo apt-get install snapd lz4 -y

Off State Sync

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ~/.zetacored/config/config.toml

Stop Node and Reset Date

sudo systemctl stop zetacored

cp $HOME/.zetacored/data/priv_validator_state.json $HOME/.zetacored/priv_validator_state.json.backup

rm -rf $HOME/.zetacored/data

zetacored tendermint unsafe-reset-all --home ~/.zetacored/ --keep-addr-book

Download Snapshot

SNAP_NAME=$(curl -s https://ss-t.zetachain.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss-t.zetachain.nodestake.org/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.zetacored

mv $HOME/.zetacored/priv_validator_state.json.backup $HOME/.zetacored/data/priv_validator_state.json

Restart Node

sudo systemctl restart zetacored
journalctl -u zetacored -f

If you have any questions, please reach out to our Discord