Useful commands

🔑 Key management
Add new key
stchaind keys add wallet
Recover existing key
stchaind keys add wallet --recover
List all keys
stchaind keys list
Delete key
stchaind keys delete wallet
Export key to the file
stchaind keys export wallet
Import key from the file
stchaind keys import wallet wallet.backup
Query wallet balance
stchaind q bank balances $(stchaind keys show wallet -a)
👷 Validator management
info
Please make sure you have adjusted moniker, identity, details and website to match your values.
Create new validator
stchaind tx staking create-validator \
--amount 1stos \
--pubkey $(stchaind tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id stratos-1 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 1000000000wei \
-y
Edit existing validator
stchaind tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id stratos-1 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 1000000000wei \
-y
Unjail validator
stchaind tx slashing unjail --from wallet --chain-id stratos-1 --gas-adjustment 1.4 --gas auto --gas-prices 1000000000wei -y
Jail reason
stchaind query slashing signing-info $(stchaind tendermint show-validator)
List all active validators
stchaind q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
List all inactive validators
stchaind q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
View validator details
stchaind q staking validator $(stchaind keys show wallet --bech val -a)