Cheat Sheet | warden-protocol

ADD NEW KEY

wardend keys add wallet

RECOVER EXISTING KEY

wardend keys add wallet --recover

LIST ALL KEYS

wardend keys list

DELETE KEY

wardend keys delete wallet

EXPORT KEY TO A FILE

wardend keys export wallet

IMPORT KEY FROM A FILE

wardend keys import wallet wallet.backup

QUERY WALLET BALANCE

wardend q bank balances $(wardend keys show wallet -a)

Please make sure you have adjusted moniker, identity, details and website to match your values.

CREATE NEW VALIDATOR

wardend tx staking create-validator \
--amount 1000000uward \
--pubkey $(wardend tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id buenavista-1 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.05 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025uward \
-y

EDIT EXISTING VALIDATOR

wardend tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id buenavista-1 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025uward \
-y

UNJAIL VALIDATOR

wardend tx slashing unjail \
--from wallet \
--chain-id buenavista-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025uward \
-y

JAIL REASON

wardend query slashing signing-info $(wardend tendermint show-validator)

LIST ALL ACTIVE VALIDATORS

wardend 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

wardend 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

wardend q staking validator $(wardend keys show wallet --bech val -a)

WITHDRAW REWARDS FROM ALL VALIDATORS

wardend tx distribution withdraw-all-rewards \
--from wallet \
--chain-id buenavista-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025uward \
-y

WITHDRAW COMMISSION AND REWARDS FROM YOUR VALIDATOR

wardend tx distribution withdraw-rewards $(wardend keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id buenavista-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025uward \
-y

DELEGATE TOKENS TO YOURSELF

wardend tx staking delegate $(wardend keys show wallet --bech val -a) 1000000uward \
--from wallet \
--chain-id buenavista-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025uward \
-y

DELEGATE TOKENS TO VALIDATOR

wardend tx staking delegate <TO_VALOPER_ADDRESS> 1000000uward \
--from wallet \
--chain-id buenavista-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025uward \
-y

REDELEGATE TOKENS TO ANOTHER VALIDATOR

wardend tx staking redelegate $(wardend keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uward \
--from wallet \
--chain-id buenavista-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025uward \
-y

UNBOND TOKENS FROM YOUR VALIDATOR

wardend tx staking unbond $(wardend keys show wallet --bech val -a) 1000000uward \
--from wallet \
--chain-id buenavista-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025uward \
-y

SEND TOKENS TO THE WALLET

wardend tx bank send wallet <TO_WALLET_ADDRESS> 1000000uward \
--from wallet \
--chain-id buenavista-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025uward \
-y