Cheat Sheet
Service operations ⚙️
Check logs
sudo journalctl -u emped -f
Start service
sudo systemctl start emped
Stop service
sudo systemctl stop emped
Restart service
sudo systemctl restart emped
Check service status
sudo systemctl status emped
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable emped
Disable Service
sudo systemctl disable emped
Your node peer
echo $(emped tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.empe-chain/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Restore executing wallet
emped keys add $WALLET --recover
Delete wallet
emped keys delete $WALLET
Check Balance
emped q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
emped keys export $WALLET
View EVM Prived Key
emped keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
emped keys import $WALLET wallet.backup
Tokens
Withdraw all rewards
emped tx distribution withdraw-all-rewards --from $WALLET --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --fees 30uempe
Withdraw rewards and commission from your validator
emped tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --fees 30uempe -y
Check your balance
emped query bank balances $WALLET_ADDRESS
Delegate to Yourself
emped tx staking delegate $(emped keys show $WALLET --bech val -a) 1000000uempe --from $WALLET --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --fees 30uempe -y
Delegate
emped tx staking delegate <TO_VALOPER_ADDRESS> 1000000uempe --from $WALLET --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --fees 30uempe -y
Redelegate Stake to Another Validator
emped tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000uempe --from $WALLET --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --fees 30uempe -y
Unbond
emped tx staking unbond $(emped keys show $WALLET --bech val -a) 1000000uempe --from $WALLET --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --fees 30uempe -y
Transfer Funds
emped tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000uempe --gas auto --gas-adjustment 1.5 --fees 30uempe -y
Validator operations
Commission max change rate
Create New Validator
emped tx staking create-validator \
--amount 1000000uempe \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(emped tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "blockchain" \
--chain-id empe-testnet-2 \
--gas auto --gas-adjustment 1.5 --fees 30uempe \
-y
Edit Existing Validator
emped tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "blockchain" \
--from $WALLET \
--chain-id empe-testnet-2 \
--gas auto --gas-adjustment 1.5 --fees 30uempe \
-y
Validator Details
emped q staking validator $(emped keys show $WALLET --bech val -a)
Jailing info
emped q slashing signing-info $(emped tendermint show-validator)
Unjail validator
emped tx slashing unjail --from $WALLET --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --fees 30uempe -y
Active Validators List
emped 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
[[ $(emped q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(emped status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
emped q slashing signing-info $(emped tendermint show-validator)
Governance
Create New Text Proposal
emped tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uempe \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 --fees 30uempe \
-y
Proposals List
emped query gov proposals
View proposal
emped query gov proposal 1
Vote
emped tx gov vote 1 yes --from $WALLET --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --fees 30uempe -y
Last updated