CLI Cheatsheet

Service Operation

Check Logs

sudo journalctl -u emped -f

Start Sevice

sudo systemctl start emped

Stop service

sudo systemctl stop emped

Restart Service

sudo systemctl restart emped

Check Service

sudo systemctl status emped

Reload Service

sudo systemctl daemon-reload

Enable Service

sudo systemctl enable emped

Disable Service

sudo systemctl disable emped

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/".*//')

Wallet Operation

Add New Wallet

emped keys add $WALLET

Add Existing Wallet

emped keys add $WALLET --recover

List Wallet

emped keys list

Delete Wallet

emped keys delete $WALLET

Check Balance

emped q bank balances $WALLET_ADDRESS 

View EVM Private Key

emped keys unsafe-export-eth-key $WALLET

Convert address

Token

Withdraw all rewards

emped tx distribution withdraw-all-rewards --from $WALLET --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --gas-prices 0.0001uempe -y 

Withdraw comission

emped tx distribution withdraw-rewards $(emped keys show $WALLET --bech val -a) --commission --from wallet --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --gas-prices 0.0001uempe -y 

Delegate to your own validator

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 --gas-prices 0.0001uempe -y 

Delegate to other 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 

Unbound token from your own validator

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 

Sending token to other wallet

emped tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000uempe --gas auto --gas-adjustment 1.5 --fees 30uempe -y 

Validator Operations

Edit existing validator

emped tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--website="" \
--chain-id=empe-testnet-2 \
--from=wallet \
--gas=auto \
-y 

Validator Info

emped status 2>&1 | jq

Unjail Validator

emped tx slashing unjail --from $WALLET --chain-id empe-testnet-2 --gas auto --gas-adjustment 1.5 --fees 30uempe -y 

Jailed Reason

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

Governance

Vote You can change the value of yes to no,abstain,no withveto

emped tx gov vote (proposal number) yes --from $WALLET --chain-id empe-testnet-2 --gas=auto -y

Proposal List

emped query gov proposals 

Delete Node

this command for delete node make sure u had back up your priv_validator_key.json

cd $HOME && sudo systemctl stop emped && sudo systemctl disable emped && sudo rm /etc/systemd/system/emped.service && sudo systemctl daemon-reload && sudo rm -rf $(which emped) && sudo rm -rf $HOME/.empe-chain && sudo rm -rf $(which emped)

Last updated