Welcome to validator AlxVoy ⚡ ANODE.TEAM



Teritori

Links

The R!OT

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

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

Installation

Software Requirements

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

Install last binary

git clone https://github.com/TERITORI/teritori-chain
cd teritori-chain
git checkout v2.0.6
make install

Init the config files

teritorid init <moniker> --chain-id teritori-1
teritorid config chain-id teritori-1

Create a wallet

teritorid keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Teritori/main/genesis.json > ~/.teritorid/config/genesis.json
curl https://anode.team/Teritori/main/addrbook.json > ~/.teritorid/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="3069b058b5ed85c3cdb2cf18fb1d255d966b53af@193.149.187.8:26656,a06fbbb9ace823ae28a696a91daa2d0644653c28@65.21.32.200:26756,e73e8cefd738de437775f9621a8bd76f1e6ff954@18.191.35.171:26656,010f61b6cb13193853be4f42c328df3a0680d4d6@65.108.101.50:60656,5bca681879abab92404f7b8f50a6ec5bd0b36d62@138.201.216.87:29656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.teritorid/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.01utori\"/" $HOME/.teritorid/config/app.toml

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://teritori.rpc.m.anode.team:443 && \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 100)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) && \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
wget https://anode.team/unsafe-reset-all.sh && chmod u+x unsafe-reset-all.sh && ./unsafe-reset-all.sh teritorid teritorid
peers="d2841ce68396c06b9793597feedbcef26ff87a8d@65.109.28.177:26796"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.teritorid/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/.teritorid/config/config.toml
curl -o - -L https://anode.team/Teritori/main/anode.team_teritori_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.teritorid/data/
sudo systemctl restart teritorid && journalctl -fu teritorid -o cat

SnapShot (2 times a day)

sudo systemctl stop teritorid && \
cp $HOME/.teritorid/data/priv_validator_state.json $HOME/.teritorid/priv_validator_state.json.backup && \
rm -rf $HOME/.teritorid/data/
curl -o - -L https://anode.team/Teritori/main/anode.team_teritori.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.teritorid
mv $HOME/.teritorid/priv_validator_state.json.backup $HOME/.teritorid/data/priv_validator_state.json && \
sudo systemctl restart teritorid && journalctl -fu teritorid -o cat

Testnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

wget -O Teritori.sh https://anode.team/Teritori/test/Teritori.sh && chmod u+x Teritori.sh && ./Teritori.sh

Installation

Software Requirements

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

Install last binary

git clone https://github.com/TERITORI/teritori-chain
cd teritori-chain
git checkout v2.0.0
make install

Init the config files

teritorid init <moniker> --chain-id teritori-test-4
teritorid config chain-id teritori-test-4

Create a wallet

teritorid keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Teritori/test/genesis.json > ~/.teritorid/config/genesis.json
curl https://anode.team/Teritori/test/addrbook.json > ~/.teritorid/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="15dd94f68c450da2c3b7c60b6364e3dce6f0cbf2@185.193.66.68:26641,ccc59b8a55f9c6e7a24bd693e2796f781ea3a670@65.108.227.133:27656,5ae1012f9b0f4672d8152de903d115dd2f1a3ee3@65.21.170.3:27656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.teritorid/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.01utori\"/" $HOME/.teritorid/config/app.toml

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

teritorid tx staking create-validator \
  --amount=1000000utori \
  --pubkey=$(teritorid tendermint show-validator) \
  --moniker="<moniker>" \
  --identity="<identity>" \
  --website="<website>" \
  --details="<details>" \
  --security-contact="<contact>" \
  --chain-id="teritori-test-4" \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --fees="10000utori" \
  --from=<wallet_name>

State-Sync

SNAP_RPC=https://teritori.rpc.t.anode.team:443 && \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 100)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) && \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
wget https://anode.team/unsafe-reset-all.sh && chmod u+x unsafe-reset-all.sh && ./unsafe-reset-all.sh teritorid teritorid
peers="22101a61b235e607d5d0ad51b698d7511ebf87e2@144.76.97.251:26796"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.teritorid/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/.teritorid/config/config.toml
curl -o - -L https://anode.team/Teritori/test/anode.team_teritori_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.teritorid/data/
sudo systemctl restart teritorid && journalctl -fu teritorid -o cat