Testnet
Empeiria
- Chain ID
Run these after the install guide, which sets $WALLET, $MONIKER and the chain variables.
Keys and wallet
Add a new key
emped keys add $WALLETRecover a key
emped keys add $WALLET --recoverList keys
emped keys listWallet balance
emped q bank balances $(emped keys show $WALLET -a)
Validator
Create a validator
cat > $HOME/validator.json << EOF { "pubkey": $(emped comet show-validator), "amount": "1000000uempe", "moniker": "$MONIKER", "identity": "", "website": "", "security": "", "details": "", "commission-rate": "0.05", "commission-max-rate": "0.20", "commission-max-change-rate": "0.05", "min-self-delegation": "1" } EOF emped tx staking create-validator $HOME/validator.json --from $WALLET --chain-id $EMPE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uempe -yEdit the validator
emped tx staking edit-validator --new-moniker "$MONIKER" --identity "" --website "" --details "" --from $WALLET --chain-id $EMPE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uempe -yUnjail
emped tx slashing unjail --from $WALLET --chain-id $EMPE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uempe -yValidator details
emped q staking validator $(emped keys show $WALLET --bech val -a)
Tokens
Withdraw all rewards
emped tx distribution withdraw-all-rewards --from $WALLET --chain-id $EMPE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uempe -yWithdraw commission and rewards
emped tx distribution withdraw-rewards $(emped keys show $WALLET --bech val -a) --commission --from $WALLET --chain-id $EMPE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uempe -yDelegate to yourself
emped tx staking delegate $(emped keys show $WALLET --bech val -a) 1000000uempe --from $WALLET --chain-id $EMPE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uempe -yRedelegate
emped tx staking redelegate $(emped keys show $WALLET --bech val -a) <TO_VALOPER> 1000000uempe --from $WALLET --chain-id $EMPE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uempe -yUnbond
emped tx staking unbond $(emped keys show $WALLET --bech val -a) 1000000uempe --from $WALLET --chain-id $EMPE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uempe -ySend tokens
emped tx bank send $WALLET <TO_ADDRESS> 1000000uempe --chain-id $EMPE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uempe -y
Governance
List proposals
emped q gov proposalsView a proposal
emped q gov proposal <ID>Vote
emped tx gov vote <ID> yes --from $WALLET --chain-id $EMPE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uempe -y # yes | no | abstain | no_with_veto
Maintenance
Node status
emped status 2>&1 | jqNode peer address
echo $(emped comet show-node-id)@$(wget -qO- eth0.me):$EMPE_PORT656Live peers
curl -s localhost:$EMPE_PORT657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"' | paste -sd,Check the validator key
[[ $(emped q staking validator $(emped keys show $WALLET --bech val -a) -o json | jq -r .validator.consensus_pubkey.value) = $(emped comet show-validator | jq -r .key) ]] && echo "match" || echo "MISMATCH"Reset chain data
emped comet unsafe-reset-all --keep-addr-book --home $HOME/.empe-chainRemove the node
sudo systemctl stop emped sudo systemctl disable emped sudo rm /etc/systemd/system/emped.service sudo systemctl daemon-reload rm -rf $HOME/.empe-chain $(which emped)
Service
Service status
sudo systemctl status empedFollow logs
sudo journalctl -fu emped -o catRestart
sudo systemctl restart empedStop
sudo systemctl stop emped