Validator247
  • 🛠️Validator247
  • 🔏Mainnet
    • 🔋MantraChain
    • 🔋Shentu
    • 🔋Nibiru
    • 🔋Dymension
    • 🔋Arch way
    • 🔋Pactus
    • 🔋SEDA
    • 🔋Entangle
    • 🔋SelfChain
    • 🔋Penumbra
    • 🔋ZetaChain
    • 🔋Elys Network
  • 🔐Testnet
    • 💠RPC Node 0G_Lab
    • 💠0G_storage-node-V3_Galileo
    • 💠XRPL EVM network
    • 💠Initia
    • 💠MantraChain-Dukong
    • 💠AlignedLayer
    • 💠Warden Protocol
    • 💠Airchains - varanasi-1
    • 💠Airchains
    • 💠Hedge
    • 💠Celestia
    • 💠Mantrachain - Hongbai
    • 💠0G_Lab
    • 💠Galactica
    • 💠Penumbra
    • 💠Side Protocol
    • 💠Avail
    • 💠Entangle
    • 💠Namada
    • 💠Autonity
    • 💠0G Newton - V2
    • 💠Empeiria
  • 💠Tanssi
  • 💠Fiamma Chain
  • 💠Story Protocol
  • 💠Nillion
  • 💠Prysm
  • 💠Octra-Labs
  • 💠Pipe Network
  • 🏁EigenLayer testnet
  • ❎Overview of the Initia Project
  • 💲Initia: Integrating L1 and L2 for a Future-Ready Blockchain Ecosystem
  • IBC
  • 🍉Cosmos Wasm Smart Contracts
  • 🐣Foundry install
  • Group 1
    • 🐣hetzner Pass
  • Page 1
Powered by GitBook
On this page
  • Public Endpoints
  • Explorer
  • Update system
  • Install Binary
  • Initialize Node
  • Download gennesis and Addrbook
  • Create Services
  • State Sync
  • Check Sync
  • Create wallet
  • Create validator
  1. Mainnet

ZetaChain

With its Universal EVM, ZetaChain is an L1 blockchain for chain abstraction. Build omnichain apps that span any chain from Ethereum to Bitcoin and beyond.

Public Endpoints

RPC : https://zetachain-rpc.validator247.com

API : https://zetachain-api.validator247.com

Explorer

Explorerhttps://explorer.zetachain.com/address/0xa3380F6a8D73a281e37E7752F67e1BEbd428ce0e

Name :Validator247

Hex Address: 0xa3380f6a8d73a281e37e7752f67e1bebd428ce0e

Validator Address: zeta15vuq765dww3grcm7waf0vlsma02z3nsw3gxjgr

Operator Address: zetavaloper15vuq765dww3grcm7waf0vlsma02z3nsw4g7w94

Update system

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

Go Install

rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.22.1.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 Binary

cd $HOME
wget https://github.com/zeta-chain/node/releases/download/v18.0.0/zetacored-linux-amd64
chmod +x $HOME/zetacored-linux-amd64
mv $HOME/zetacored-linux-amd64 $HOME/go/bin/zetacored

Initialize Node


zetacored init <monike> --chain-id zetachain_7000-1

wget -O $HOME/.zetacored/config/app.toml  https://raw.githubusercontent.com/zeta-chain/network-mainnet/main/network_files/config/app.toml
wget -O $HOME/.zetacored/config/client.toml https://raw.githubusercontent.com/zeta-chain/network-mainnet/main/network_files/config/client.toml
wget -O $HOME/.zetacored/config/config.toml https://raw.githubusercontent.com/zeta-chain/network-mainnet/main/network_files/config/config.toml
wget -O $HOME/.zetacored/config/genesis.json https://raw.githubusercontent.com/zeta-chain/network-mainnet/main/network_files/config/genesis.json

Download gennesis and Addrbook

curl -L -o addrbook.json https://github.com/Validator247/Zetachain-mainnet/raw/main/addrbook.json
curl -L -o genesis.json https://github.com/Validator247/Zetachain-mainnet/raw/main/genesis.json

PEER

PEERS=5282a547c8df5b9a852ddf5f499e0319913a5a2e@190.92.241.52:26656,49041b42e5ae5b0ef3560af156856efb8147818a@54.179.7.12:26656,2ef45628981e3bdf157ea5125a0224f38d1b8e00@141.95.65.179:26656,1d888c5985a536b53e528ad276b20294edb93592@208.91.106.110:26656,eea4892699aa8d0d54491fd2164720687d7ffc93@141.95.66.226:17600
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.zetacored/config/config.toml

Create Services

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

enable and start service
sudo systemctl daemon-reload

State Sync

sudo systemctl stop zetacored

cp $HOME/.zetacored/data/priv_validator_state.json $HOME/.zetacored/priv_validator_state.json.backup
zetacored tendermint unsafe-reset-all --home $HOME/.zetacored

PEERS=5282a547c8df5b9a852ddf5f499e0319913a5a2e@190.92.241.52:26656,49041b42e5ae5b0ef3560af156856efb8147818a@54.179.7.12:26656,2ef45628981e3bdf157ea5125a0224f38d1b8e00@141.95.65.179:26656,1d888c5985a536b53e528ad276b20294edb93592@208.91.106.110:26656,eea4892699aa8d0d54491fd2164720687d7ffc93@141.95.66.226:17600
SNAP_RPC="https://zetachain-rpc.validator247.com:443"

sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.zetacored/config/config.toml 

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

echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH && sleep 2

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\"\"|" $HOME/.zetacored/config/config.toml

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

sudo systemctl restart zetacored && sudo journalctl -u zetacored -f -o cat

Check Sync

zetacored status 2>&1 | jq 

Create wallet

zetacored keys add wallet

Restore wallet

zetacored keys add wallet --recover

Check Banlance

zetacored q bank balances <your_wallet>

Create validator

zetacored tx staking create-validator \
--amount 1000000000000000000azeta \
--from wallet \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.02 \
--min-self-delegation 1 \
--pubkey $(zetacored tendermint show-validator) \
--moniker  Nodename" \
--identity “keybase> \
--website “Your_website>  \
--details “I love validator247 " \
--chain-id zetachain_7000-1 \
--fees 30311410000000000azeta \
-y \

Note: Add to App.toml

app-db-backend = "pebbledb"
PreviousPenumbraNextElys Network

Last updated 9 months ago

🔏
🔋