Managing keys
Generate new key
Copy hedged keys add wallet
Recover key
Copy hedged keys add wallet --recover
List all key
Query wallet balances
Copy hedged q bank balances $(hedged keys show wallet -a)
Managing validators
Create validator
Copy 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" \
-y
Edit validator
Copy 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 \
-y
Unjail
Copy hedged tx slashing unjail --from wallet --gas-prices 0.025uhedge --chain-id=berberis-1 -y
View validator details
Copy hedged keys show wallet --bech val -a
Query active validators
Copy hedged q staking validators -o json --limit=1000 \
| jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' \
| jq -r '.tokens + " - " + .description.moniker' \
| sort -gr | nl
Query inactive validators
Copy hedged q staking validators -o json --limit=1000 \
| jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' \
| jq -r '.tokens + " - " + .description.moniker' \
| sort -gr | nl
Managing Tokens
Delegate tokens to your validator
Copy hedged tx staking delegate $(hedged keys show wallet --bech val -a) 1000000stake --from wallet --gas-prices 0.025uhedge --chain-id=berberis-1 -y
Send token
Copy hedged tx bank send <WALLET> <TO_WALLET> <AMOUNT>uhedge --gas-prices 0.025uhedge --chain-id=berberis-1 -y
Withdraw reward from all validator
Copy hedged tx distribution withdraw-all-rewards --from wallet --gas-prices 0.025uhedge --chain-id=berberis-1 -y
Withdraw reward and commission
Copy hedged tx distribution withdraw-rewards $(hedged keys show wallet --bech val -a) --commission --from wallet --gas-prices 0.025uhedge --chain-id=berberis-1 -y
Redelegate to another validator
Copy 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 -y
Governance
Query list proposal
Copy hedged query gov proposals
View proposal by ID
Copy hedged query gov proposal 1
Vote yes
Copy hedged tx gov vote 1 yes --from wallet --gas-prices 0.025uhedge -y
Vote No
Copy hedged tx gov vote 1 no --from wallet --gas-prices 0.025uhedge -y
Vote option asbtain
Copy hedged tx gov vote 1 abstain --from wallet --gas-prices 0.025uhedge -y
Vote option NoWithVeto
Copy hedged tx gov vote 1 NoWithVeto --from wallet --gas-prices 0.025uhedge -y
Maintenance
Check sync
Copy hedged status 2>&1 | jq .SyncInfo
Node status
Get validator information
Copy hedged status 2>&1 | jq .ValidatorInfo
Get your p2p peer address
Copy 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
Copy 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)}'
\