October 30, 2022
Команды для валидаторов узлов , проектов на Cosmos SDK !!!
<binary file> - бинарный файл нужен для запуска команд! пример ( okp4d ).
<wallet_name> - имя , адрес , заданная переменная кошелька.
<valoper_address> - адрес валидатора.
denom - название токена ! пример ( uknow ).
<chain_id> - название сети ! пример ( okp4-nemeton ).
journalctl -fu binary_file -o cat
sudo systemctl stop binary_file
sudo systemctl restart binary_file
binary_file q slashing signing-info $(binary_file tendermint show-validator)
<binary_file> q slashing params
<binary_file> status 2>&1 | jq .SyncInfo
<binary_file> query staking validator <valoper_address>
<binary_file> keys show <wallet_name> --bech val -a
<binary_file> status | jq
<binary_file> keys add <wallet_name>
<binary_file> keys add <wallet_name> --recover
<binary_file> keys delete <wallet_name>
<binary_file> keys list
<binary_file> query bank balances <wallet_name>
<binary_file> tx bank send <wallet_name> <to_wallet_name> 777denom
<binary_file> tx gov vote 1 yes --from <wallet_name> --chain-id=<chain_id>
<binary_file> tx staking delegate <valoper_address> 777denom --from=<wallet_name> --chain-id=<chain_id> --gas=auto
переделегировать стейк от валидатора к другому валидатору:
<binary_file> tx staking redelegate <src_ValidatorAddress> <dest_ValidatorAddress> 777denom --from=<wallet_name> --chain-id=<chain_id> --gas=auto
<binary_file> tx distribution withdraw-rewards <valoper_address> --from=<wallet_name> --commission --chain-id=<chain_id> --gas=auto
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)}'
echo -e "\033[0;32m$(grep -A 3 "\[rpc\]" ~/.<binary_file>/config/config.toml | egrep -o ":[0-9]+")\033[0m"
<binary_file> tx staking create-validator \ --amount 777denom \ --from <wallet_name> \ --commission-max-change-rate "0.01" \ --commission-max-rate "0.2" \ --commission-rate "0.05" \ --min-self-delegation "1" \ --pubkey $(<binary_file> tendermint show-validator) \ --moniker <moniker> \ --chain-id <chain_id>
```<binary_file> tx staking edit-validator \ --moniker=<moniker> \ --identity=<your_keybase_id> \ --website="<your_website>" \ --details="<your_validator_description>" \ --chain-id=<chain_id> \ --from=<wallet_name>```
<binary_file> tx slashing unjail \ --broadcast-mode=block \ --from=<wallet_name> \ --chain-id=<chain_id> \ --gas=auto \ --fees 777denom