Welcome to validator AlxVoy ⚡ ANODE.TEAM



KiChain

Links

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

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

Installation

Software Requirements

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

Install last binary

git clone https://github.com/KiFoundation/ki-tools.git
cd ki-tools
git checkout 5.0.2
make install

Init the config files

kid init <moniker> --chain-id kichain-2
kid config chain-id kichain-2

Create a wallet

kid keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/KiChain/main/genesis.json > ~/.kid/config/genesis.json
curl https://anode.team/KiChain/main/addrbook.json > ~/.kid/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="33626a7b898a6b6515718fd41f9c94368bcdad2e@144.76.97.251:32656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.kid/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.025uxki\"/" $HOME/.kid/config/app.toml

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://ki.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 kid && kid tendermint unsafe-reset-all --home $HOME/.kid --keep-addr-book
peers="33626a7b898a6b6515718fd41f9c94368bcdad2e@144.76.97.251:32656"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.kid/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/.kid/config/config.toml
curl -o - -L https://anode.team/KiChain/main/anode.team_kichain_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.kid/
sudo systemctl restart kid && journalctl -fu kid -o cat

Testnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

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

Installation

Software Requirements

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

Install last binary

git clone https://github.com/KiFoundation/ki-tools.git
cd ki-tools
git checkout 5.0.0-beta
make install

Init the config files

kid init <moniker> --chain-id kichain-t-4
kid config chain-id kichain-t-4

Create a wallet

kid keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/KiChain/test/genesis.json > ~/.kid/config/genesis.json
curl https://anode.team/KiChain/test/addrbook.json > ~/.kid/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="f1f9c2cfd78a683989b36716bfffdca10cdeee6f@65.109.28.177:21156"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.kid/config/config.toml

Add min gas

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

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://ki.rpc.t.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 kid && kid tendermint unsafe-reset-all --home $HOME/.kid --keep-addr-book
peers="f1f9c2cfd78a683989b36716bfffdca10cdeee6f@65.109.28.177:21156"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.kid/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/.kid/config/config.toml
curl -o - -L https://anode.team/KiChain/test/anode.team_kichain_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.kid/
sudo systemctl restart kid && journalctl -fu kid -o cat