Management
ADD NEW KEY
mantrachaind keys add wallet
RECOVER EXISTING KEY
mantrachaind keys add wallet --recover
LIST ALL KEYS
mantrachaind keys list
DELETE KEY
mantrachaind keys delete wallet
EXPORT KEY TO A FILE
mantrachaind keys export wallet
IMPORT KEY FROM A FILE
mantrachaind keys import wallet wallet.backup
QUERY WALLET BALANCE
mantrachaind q bank balances $(mantrachaind keys show wallet -a)
Please make sure you have adjusted moniker, identity, details and website to match your values.
CREATE NEW VALIDATOR
mantrachaind tx staking create-validator \
--amount 1000000uom \
--pubkey $(mantrachaind tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id mantra-hongbai-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.0002uom \
-y
EDIT EXISTING VALIDATOR
mantrachaind tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id mantra-hongbai-1 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0002uom \
-y
UNJAIL VALIDATOR
mantrachaind tx slashing unjail \
--from wallet \
--chain-id mantra-hongbai-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0002uom \
-y
JAIL REASON
mantrachaind query slashing signing-info $(mantrachaind tendermint show-validator)
LIST ALL ACTIVE VALIDATORS
mantrachaind 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
mantrachaind 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
mantrachaind q staking validator $(mantrachaind keys show wallet --bech val -a)
WITHDRAW REWARDS FROM ALL VALIDATORS
mantrachaind tx distribution withdraw-all-rewards \
--from wallet \
--chain-id mantra-hongbai-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0002uom \
-y
WITHDRAW COMMISSION AND REWARDS FROM YOUR VALIDATOR
mantrachaind tx distribution withdraw-rewards $(mantrachaind keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id mantra-hongbai-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0002uom \
-y
DELEGATE TOKENS TO YOURSELF
mantrachaind tx staking delegate $(mantrachaind keys show wallet --bech val -a) 1000000uom \
--from wallet \
--chain-id mantra-hongbai-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0002uom \
-y
DELEGATE TOKENS TO VALIDATOR
mantrachaind tx staking delegate <TO_VALOPER_ADDRESS> 1000000uom \
--from wallet \
--chain-id mantra-hongbai-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0002uom \
-y
REDELEGATE TOKENS TO ANOTHER VALIDATOR
mantrachaind tx staking redelegate $(mantrachaind keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uom \
--from wallet \
--chain-id mantra-hongbai-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0002uom \
-y
UNBOND TOKENS FROM YOUR VALIDATOR
mantrachaind tx staking unbond $(mantrachaind keys show wallet --bech val -a) 1000000uom \
--from wallet \
--chain-id mantra-hongbai-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0002uom \
-y
SEND TOKENS TO THE WALLET
mantrachaind tx bank send wallet <TO_WALLET_ADDRESS> 1000000uom \
--from wallet \
--chain-id mantra-hongbai-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0002uom \
-y
Last updated