Service operations ⚙️

Check logs

sudo journalctl -u hedged -f

Start service

sudo systemctl start hedged

Stop service

sudo systemctl stop hedged

Restart service

sudo systemctl restart hedged

Check service status

sudo systemctl status hedged

Reload services

sudo systemctl daemon-reload

Enable Service

sudo systemctl enable hedged

Disable Service

sudo systemctl disable hedged

Sync info

hedged status 2>&1 | jq .SyncInfo

Node info

hedged status 2>&1 | jq .NodeInfo

Your node peer

echo $(hedged tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.hedge/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')

Key management

Add New Wallet

hedged keys add $WALLET

Restore executing wallet

hedged keys add $WALLET --recover

List All Wallets

hedged keys list

Delete wallet

hedged keys delete $WALLET

Check Balance

hedged q bank balances $(hedged keys show $WALLET -a)

Export Key (save to wallet.backup)

hedged keys export $WALLET

View EVM Prived Key

hedged keys unsafe-export-eth-key $WALLET

Import Key (restore from wallet.backup)

hedged keys import $WALLET wallet.backup

Tokens

To valoper address
To wallet address
Amount, uhedge

Withdraw all rewards

hedged tx distribution withdraw-all-rewards --from $WALLET --chain-id berberis-1 --gas 200000 --gas-prices 10000uhedge

Withdraw rewards and commission from your validator

hedged tx distribution withdraw-rewards $VALOPER_ADDRESS_hedge --from $WALLET --commission --chain-id berberis-1 --gas 200000 --gas-prices 10000uhedge -y

Check your balance

hedged query bank balances $WALLET_ADDRESS_hedge

Delegate to Yourself

hedged tx staking delegate $(hedged keys show $WALLET --bech val -a) 1000000uhedge --from $WALLET --chain-id berberis-1 --gas 200000 --gas-prices 10000uhedge -y

Delegate

hedged tx staking delegate <TO_VALOPER_ADDRESS> 1000000uhedge --from $WALLET --chain-id berberis-1 --gas 200000 --gas-prices 10000uhedge -y

Redelegate Stake to Another Validator

hedged tx staking redelegate $VALOPER_ADDRESS_hedge <TO_VALOPER_ADDRESS> 1000000uhedge --from $WALLET --chain-id berberis-1 --gas 200000 --gas-prices 10000uhedge -y

Unbond

hedged tx staking unbond $(hedged keys show $WALLET --bech val -a) 1000000uhedge --from $WALLET --chain-id berberis-1 --gas 200000 --gas-prices 10000uhedge -y

Transfer Funds

hedged tx bank send $WALLET_ADDRESS_hedge <TO_WALLET_ADDRESS> 1000000uhedge --gas 200000 --gas-prices 10000uhedge -y

Validator operations

Moniker
Identity
Details
Amount, uhedge
Commission rate
Commission max rate
Commission max change rate

Create New Validator

hedged tx staking create-validator \
--amount 1000000uhedge \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(hedged tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain 💚" \
--chain-id berberis-1 \
--gas 200000 --gas-prices 10000uhedge \
-y

Edit Existing Validator

hedged tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain 💚" \
--from $WALLET \
--chain-id berberis-1 \
--gas 200000 --gas-prices 10000uhedge \
-y

Validator info

hedged status 2>&1 | jq .ValidatorInfo

Validator Details

hedged q staking validator $(hedged keys show $WALLET --bech val -a)

Jailing info

hedged q slashing signing-info $(hedged tendermint show-validator)

Slashing parameters

hedged q slashing params

Unjail validator

hedged tx slashing unjail --from $WALLET --chain-id berberis-1 --gas 200000 --gas-prices 10000uhedge -y

Active Validators List

hedged q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " 	 " + .description.moniker' | sort -gr | nl

Check Validator key

[[ $(hedged q staking validator $VALOPER_ADDRESS_hedge -oj | jq -r .consensus_pubkey.key) = $(hedged status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"

Signing info

hedged q slashing signing-info $(hedged tendermint show-validator)

Governance

Title
Description
Deposit, uhedge

Create New Text Proposal

hedged  tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uhedge \
--type Text \
--from $WALLET \
--gas 200000 --gas-prices 10000uhedge \
-y 

Proposals List

hedged query gov proposals
Proposal ID
Proposal option

View proposal

hedged query gov proposal 1

Vote

hedged tx gov vote 1 yes --from $WALLET --chain-id berberis-1  --gas 200000 --gas-prices 10000uhedge -y