Management
#Generate
hedged keys add wallet
#Recover
hedged keys add wallet --recover
#Delete
hedged keys delete wallet
#Export private key
hedged keys export wallet
#Import with <keyfile>
hedged keys import wallet <keyfile>
#Check balance
hedged q bank balances $(hedged keys show wallet -a)
#Show all wallet
hedged keys list
#Create validator
hedged tx staking create-validator \
--amount 1000000uhedge \
--pubkey $(hedged tendermint show-validator) \
--moniker "your-moniker-name" \
--identity "your-keybase-id" \
--details "your-details" \
--website "your-website" \
--security-contact "your-email" \
--chain-id berberis-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 0.025uhedge \
-y
#edit validator
hedged tx staking edit-validator \
--new-moniker "your-moniker-name" \
--identity "your-keybase-id" \
--details "your-details" \
--website "your-website" \
--security-contact "your-email" \
--chain-id berberis-1 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.025uhedge \
-y
#Unjail
hedged tx slashing unjail --from wallet --chain-id berberis-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.025uhedge -y
#List active validator
hedged 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 inactive validator
hedged 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
#Validator details
hedged q staking validator $(hedged keys show wallet --bech val -a)
#Send
hedged tx bank send wallet <to-wallet-address> 1000000uhedge \
--from wallet \
--chain-id berberis-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.025uhedge \
-y
#Delegate
hedged tx staking delegate $(hedged keys show wallet --bech val -a) 1000000uhedge \
--from wallet \
--chain-id berberis-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.025uhedge \
-y
#Redelegate
hedged tx staking redelegate $(hedged keys show wallet --bech val -a) <to-valoper-address> 1000000uhedge \
--from wallet \
--chain-id berberis-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.025uhedge \
-y
#Unbond
hedged tx staking unbond $(hedged keys show wallet --bech val -a) 1000000uhedge \
--from wallet \
--chain-id berberis-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.025uhedge \
-y
#Withdraw reward and commission
hedged tx distribution withdraw-rewards $(hedged keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id berberis-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.025uhedge \
-y
#Withdraw reward from all validator
hedged tx distribution withdraw-all-rewards \
--from wallet \
--chain-id berberis-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.025uhedge \
-y
#List proposal
hedged d query gov proposals
#View proposal by ID
hedged d query gov proposal 1
#Vote yes
hedged tx gov vote 3 yes \
--chain-id berberis-1 \
--from "wallet" \
--gas "200000" \
--fees 500uhedge \
-y
#Vote no
hedged tx gov vote 3 no \
--chain-id berberis-1 \
--from "wallet" \
--gas "200000" \
--fees 500uhedge \
-y
#Vote abstain
hedged d tx gov vote 3 abstain \
--chain-id berberis-1 \
--from "wallet" \
--gas "200000" \
--fees 500uhedge \
-y
#Vote NoWithVeto
hedged d tx gov vote 1 NoWithVeto \
--chain-id berberis-1 \
--from "wallet" \
--gas "200000" \
--fees 500uhedge \
-y
Last updated