Cheat Sheet

ADD NEW KEY

junctiond keys add wallet

RECOVER EXISTING KEY

junctiond keys add wallet --recover

LIST ALL KEYS

junctiond keys list

DELETE KEY

junctiond keys delete wallet

EXPORT KEY TO A FILE

junctiond keys export wallet

IMPORT KEY FROM A FILE

junctiond keys import wallet wallet.backup

QUERY WALLET BALANCE

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

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

CREATE NEW VALIDATOR

junctiond tx staking create-validator \
--amount=10000000amf \
--pubkey=$(junctiond tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=junction \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1000 \
--from=wallet \
--gas-adjustment=1.5 \
--fees=200amf \ 
-y

EDIT EXISTING VALIDATOR

junctiond tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=junction \
--from=wallet \
--gas-adjustment=1.5 \
--fees=200amf \
-y

UNJAIL VALIDATOR

junctiond tx slashing unjail --from wallet --chain-id junction --gas-adjustment 1.5 --fees 200amf -y

JAIL REASON

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

LIST ALL ACTIVE VALIDATORS

junctiond q staking validators -o json --limit=1000 \
| jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' \
| jq -r '.tokens + " - " + .description.moniker' \
| sort -gr | nl

LIST ALL INACTIVE VALIDATORS

junctiond q staking validators -o json --limit=1000 \
| jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' \
| jq -r '.tokens + " - " + .description.moniker' \
| sort -gr | nl

VIEW VALIDATOR DETAILS

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

WITHDRAW REWARDS FROM ALL VALIDATORS

junctiond tx distribution withdraw-all-rewards \
--from wallet \
--chain-id=junction \
--from=wallet \
--gas-adjustment=1.5 \
--fees=200amf \
-y

WITHDRAW COMMISSION AND REWARDS FROM YOUR VALIDATOR

junctiond tx distribution withdraw-rewards $(wardend keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id=junction \
--from=wallet \
--gas-adjustment=1.5 \
--fees=200amf \
-y

DELEGATE TOKENS TO YOURSELF

junctiond 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

junctiond tx staking delegate <TO_VALOPER_ADDRESS> 1000000uward \
--from wallet \
--chain-id=junction \
--from=wallet \
--gas-adjustment=1.5 \
--fees=200amf \
-y

REDELEGATE TOKENS TO ANOTHER VALIDATOR

junctiond tx staking redelegate $(wardend keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uward \
--from wallet \
--chain-id=junction \
--from=wallet \
--gas-adjustment=1.5 \
--fees=200amf \
-y

UNBOND TOKENS FROM YOUR VALIDATOR

junctiond tx staking unbond $(wardend keys show wallet --bech val -a) 1000000uward \
--from wallet \
--chain-id=junction \
--from=wallet \
--gas-adjustment=1.5 \
--fees=200amf \
-y

SEND TOKENS TO THE WALLET

junctiond tx bank send wallet <TO_WALLET_ADDRESS> 1000000uward \
--from wallet \
--chain-id=junction \
--from=wallet \
--gas-adjustment=1.5 \
--fees=200amf \
-y