Commands
Managing keys
Generate new key
hedged keys add walletRecover key
hedged keys add wallet --recoverList all key
hedged keys listQuery wallet balances
hedged q bank balances $(hedged keys show wallet -a)Managing validators
Create validator
hedged tx staking create-validator \
--amount=1000000uhedge \
--commission-max-change-rate 0.01 \
--commission-max-rate 0.1 \
--commission-rate 0.1 \
--from wallet \
--min-self-delegation 1 \
--moniker $MONIKER \
--security-contact "" \
--identity "06F5F34BD54AA6C7" \
--website "https://vnbnode.com" \
--details "VNBnode is a group of professional validators / researchers in blockchain" \
--pubkey $(hedged tendermint show-validator) \
--chain-id=berberis-1 \
--gas-prices="0.025uhedge" \
-yEdit validator
hedged tx staking edit-validator \
--new-moniker "NewName-VNBnode" \
--identity "06F5F34BD54AA6C7" \
--website "https://vnbnode.com" \
--details "VNBnode is a group of professional validators / researchers in blockchain" \
--security-contact "" \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--chain-id=berberis-1 \
--gas-prices 0.025uhedge \
-yUnjail
hedged tx slashing unjail --from wallet --gas-prices 0.025uhedge --chain-id=berberis-1 -yView validator details
hedged keys show wallet --bech val -aQuery active validators
hedged q staking validators -o json --limit=1000 \
| jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' \
| jq -r '.tokens + " - " + .description.moniker' \
| sort -gr | nlQuery inactive validators
hedged q staking validators -o json --limit=1000 \
| jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' \
| jq -r '.tokens + " - " + .description.moniker' \
| sort -gr | nlManaging Tokens
Delegate tokens to your validator
hedged tx staking delegate $(hedged keys show wallet --bech val -a) 1000000stake --from wallet --gas-prices 0.025uhedge --chain-id=berberis-1 -ySend token
hedged tx bank send <WALLET> <TO_WALLET> <AMOUNT>uhedge --gas-prices 0.025uhedge --chain-id=berberis-1 -yWithdraw reward from all validator
hedged tx distribution withdraw-all-rewards --from wallet --gas-prices 0.025uhedge --chain-id=berberis-1 -yWithdraw reward and commission
hedged tx distribution withdraw-rewards $(hedged keys show wallet --bech val -a) --commission --from wallet --gas-prices 0.025uhedge --chain-id=berberis-1 -yRedelegate to another validator
hedged tx staking redelegate $(hedged keys show wallet --bech val -a) <to-valoper-address> 1000000stake --from wallet --gas-prices 0.025uhedge --chain-id=berberis-1 -yGovernance
Query list proposal
hedged query gov proposalsView proposal by ID
hedged query gov proposal 1Vote yes
hedged tx gov vote 1 yes --from wallet --gas-prices 0.025uhedge -yVote No
hedged tx gov vote 1 no --from wallet --gas-prices 0.025uhedge -yVote option asbtain
hedged tx gov vote 1 abstain --from wallet --gas-prices 0.025uhedge -yVote option NoWithVeto
hedged tx gov vote 1 NoWithVeto --from wallet --gas-prices 0.025uhedge -yMaintenance
Check sync
hedged status 2>&1 | jq .SyncInfoNode status
hedged status | jqGet validator information
hedged status 2>&1 | jq .ValidatorInfoGet your p2p peer address
echo $(hedged tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.hedge/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')Get peers live
curl -sS http://localhost:${hedge}57/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'\
Last updated
Was this helpful?