March 2, 2023

Useful commands for checking and interacting with the KYVE NETWORK blockchain

Service management:

viewing logs:

journalctl -fu kyved -o cat

stop the service:

sudo systemctl stop kyved

restart the service:

sudo systemctl restart kyved

Node Information:

slashing parameter:

kyved q slashing signing-info $(kyved tendermint show-validator)
kyved q slashing params

synchronization information:

kyved status 2>&1 | jq .SyncInfo

validator information :

kyved query staking validator <valoper_address>

find out the validator's address:

kyved keys show $WALLET --bech val -a

node metrics:

kyved status | jq

Wallet Operations:

restore wallet:

kyved keys add $WALLET --recover

delete wallet:

kyved keys delete $WALLET

list of wallets:

kyved keys list

check the balance:

kyved query bank balances $KYVE_WALLET_ADDRESS

transfer of funds :

kyved tx bank send $KYVE_WALLET_ADDRESS <TO_KYVE_WALLET_ADDRESS> 5000tkyve

Voting:

kyved tx gov vote 5 yes --from $WALLET --chain-id=$KYVE_CHAIN_ID

Delegation and remuneration:

delegate to the validator:

kyved tx staking delegate $KYVE_VALOPER_ADDRESS 5000tkyve --from=$WALLET --chain-id=$KYVE_CHAIN_ID --fees=5000tkyve --gas=auto

redelegate a steak from a validator to another validator:

kyved tx staking redelegate <src_ValidatorAddress> <dest_ValidatorAddress> 5000000tkyve --from=$WALLET --chain-id=$KYVE_CHAIN_ID --fees=5000tkyve --gas=auto

withdrawal of rewards with commission:

kyved tx distribution withdraw-rewards $KYVE_VALOPER_ADDRESS --from=$WALLET --commission --chain-id=$KYVE_CHAIN_ID --fees=5000tkyve --gas=auto

Get a list of peers:

curl -sS http://localhost:xxxxx/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'

find out the RPC port:

echo -e "\033[0;32m$(grep -A 3 "\[rpc\]" ~/.kyve/config/config.toml | egrep -o ":[0-9]+")\033[0m"

Edit validator:

kyved tx staking edit-validator \
  --moniker=$NODENAME \
  --identity=<keybase_id> \
  --website="<website>" \
  --details="<validator_description>" \
  --chain-id=$KYVE_CHAIN_ID \
  --from=$WALLET \
  --fees=110000tkyve \
  --gas=150000 -y
  

Сhange the commission:

kyved tx staking edit-validator \
  --commission-rate "0.06" \
  --chain-id=$KYVE_CHAIN_ID \
  --from=$WALLET \
  --fees=110000tkyve \
  --gas=150000 -y

Unjail validator:

kyved tx slashing unjail \
  --broadcast-mode=block \
  --from=$WALLET \
  --chain-id=$KYVE_CHAIN_ID \
  --gas=auto \
  --fees=5000tkyve