Welcome to validator AlxVoy ⚡ ANODE.TEAM



Terp Network

Links

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

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

Installation

Software Requirements

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

Install last binary

git clone https://github.com/terpnetwork/terp-core
cd terp-core
git checkout v4.2.0
make install

Init the config files

terpd init <moniker> --chain-id morocco-1
terpd config chain-id morocco-1

Create a wallet

terpd keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Terp/main/genesis.json > ~/.terp/config/genesis.json
curl https://anode.team/Terp/main/addrbook.json > ~/.terp/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="e1e00580220f705c3f780504a1acfafbdae0d122@65.108.199.222:35656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.terp/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0uterp\"/" $HOME/.terp/config/app.toml

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://terp.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
wget https://anode.team/unsafe-reset-all.sh && chmod u+x unsafe-reset-all.sh && ./unsafe-reset-all.sh terpd .terp
peers="e1e00580220f705c3f780504a1acfafbdae0d122@65.108.199.222:35656"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.terp/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/.terp/config/config.toml
curl -o - -L https://anode.team/Terp/main/anode.team_terp_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.terp/
sudo systemctl restart terpd && journalctl -fu terpd -o cat

Testnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

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

Installation

Software Requirements

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

Install last binary

git clone https://github.com/terpnetwork/terp-core.git
cd terp-core
git checkout v4.2.2
make install

Init the config files

terpd init <moniker> --chain-id athena-4
terpd config chain-id athena-4

Create a wallet

terpd keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Terp/test/genesis.json > ~/.terp/config/genesis.json
curl https://anode.team/Terp/test/addrbook.json > ~/.terp/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="69dd5a6c7d11903a6198109576fa739a216ed92a@97.84.107.110:26656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.terp/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0uterpx\"/" $HOME/.terp/config/app.toml

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://terp.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 terpd terp
peers="2f0f98eb3965cc9949073b1f0e75a5e55be44ed2@65.109.28.177:21856"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.terp/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/.terp/config/config.toml
curl -o - -L https://anode.team/Terp/test/anode.team_terp_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.terp/
sudo systemctl restart terpd && journalctl -fu terpd -o cat