Welcome to validator AlxVoy ⚡ ANODE.TEAM



Canto

Links

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

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

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

Installation

Software Requirements

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

Install last binary

git clone https://github.com/Canto-Network/Canto.git
cd Canto
git checkout v8.1.1
make install

Init the config files

cantod init <moniker> --chain-id canto_7700-1
cantod config chain-id canto_7700-1

Create a wallet

cantod keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Canto/main/genesis.json > ~/.cantod/config/genesis.json
curl https://anode.team/Canto/main/addrbook.json > ~/.cantod/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="ef45c32b232b772dd82b2f801f0e6abd3842e66c@164.90.154.41:26656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.cantod/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0001acanto\"/" $HOME/.cantod/config/app.toml

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://canto.rpc.m.anode.team: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
sudo systemctl stop cantod && cantod tendermint unsafe-reset-all --home $HOME/.cantod --keep-addr-book
peers="6e7e9341fba194988d448393b2d77464107385c5@65.108.199.222:22496"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.cantod/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/.cantod/config/config.toml
sudo systemctl restart cantod && journalctl -fu cantod -o cat