Useful commands

Please note that the values in <> must be changed to your own values

Keys

Add new key

empowerd keys add <key_name>

Recover keys from seed

empowerd keys add <key_name> --recover

Show all keys

empowerd keys list

Delete key

empowerd keys delete <key_name>

Node configuration

Set custom port

port 56 was taken as an example, you can use numbers from 1 to 64 to set custom node port

EMPOWER_PORT=56
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${EMPOWER_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${EMPOWER_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${EMPOWER_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${EMPOWER_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${EMPOWER_PORT}660\"%" $HOME/.empowerchain/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${EMPOWER_PORT}317\"%; s%^address = \":8080\"%address = \":${EMPOWER_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${EMPOWER_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${EMPOWER_PORT}091\"%; s%^address = \"0.0.0.0:8545\"%address = \"0.0.0.0:${EMPOWER_PORT}545\"%; s%^ws-address = \"0.0.0.0:8546\"%ws-address = \"0.0.0.0:${EMPOWER_PORT}546\"%" $HOME/.empowerchain/config/app.toml

Config pruning

Disable indexing

Set minimum gas prices

Validator configuration

Create validator

Edit validator

View validator info

Unjail validator

Signing info

Token operations

Send tokens

Delegate token to your validator

Delegate token to another validator

Redelegate tokens to another validator

Unbond tokens from staking

Withdraw all rewards from staking

Governance

Vote "YES"

Vote "NO"

Abstain from voting

General commands

Check node status

Check service status

Check logs

Restart service

Stop service

Start service

Disable service

Enable service

Reload service after changes

Last updated