Welcome to validator AlxVoy ⚡ ANODE.TEAM



Tgrade

Links

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

Service script (Install, State-Sync, Snapshot, Delete)

wget -O Tgrade.sh https://anode.team/Tgrade/main/Tgrade.sh && chmod u+x Tgrade.sh && ./Tgrade.sh

Installation

Software Requirements

  • Prerequisite: go1.18.5+ required. ref
  • Prerequisite: git. ref

Install last binary

git clone https://github.com/confio/tgrade
cd tgrade
git checkout v2.0.2
make install

Init the config files

tgrade init <moniker> --chain-id tgrade-mainnet-1
tgrade config chain-id tgrade-mainnet-1

Create a wallet

tgrade keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Tgrade/main/genesis.json > ~/.tgrade/config/genesis.json
curl https://anode.team/Tgrade/main/addrbook.json > ~/.tgrade/config/addrbook.json

Add peers, seed

SEEDS="0c3b7d5a4253216de01b8642261d4e1e76aee9d8@45.76.202.195:26656,8639bc931d5721a64afc1ea52ca63ae40161bd26@194.163.144.63:26656"
PEERS="0a63421f67d02e7fb823ea6d6ceb8acf758df24d@142.132.226.137:26656,4a319eead699418e974e8eed47c2de6332c3f825@167.235.255.9:26656,6918efd409684d64694cac485dbcc27dfeea4f38@49.12.240.203:26656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.tgrade/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.05utgd\"/" $HOME/.tgrade/config/app.toml

Create the service file

sudo tee /etc/systemd/system/tgrade.service > /dev/null <<EOF
[Unit]
Description=Tgrade
After=network-online.target

[Service]
User=$USER
ExecStart=$(which tgrade) start
Restart=always
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
EOF

Load service and start

sudo systemctl daemon-reload && sudo systemctl enable tgrade
sudo systemctl restart tgrade && journalctl -fu tgrade -o cat

Create Validator

tgrade tx staking create-validator \
  --amount=1000000utgd \
  --pubkey=$(tgrade tendermint show-validator) \
  --moniker="<moniker>" \
  --identity="<identity>" \
  --website="<website>" \
  --details="<details>" \
  --security-contact="<contact>" \
  --chain-id="tgrade-mainnet-1" \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --fees="200000utgd" \
  --gas auto \
  --gas-adjustment 1.4 \
  --from=<wallet_name>

State-Sync

SNAP_RPC=https://tgrade.rpc.m.anode.team:443 && \
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
sudo systemctl stop tgrade && tgrade tendermint unsafe-reset-all --home $HOME/.tgrade --keep-addr-book
peers="deab21ea29a24c50699ca3691b50dfd54b2a3a93@144.76.97.251:28826"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.tgrade/config/config.toml
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/.tgrade/config/config.toml
curl -o - -L https://anode.team/Tgrade/main/anode.team_tgrade_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.tgrade/
sudo systemctl restart tgrade && journalctl -fu tgrade -o cat