CLI Cheatsheet

Useful Commands

to check logs of your node

sudo journalctl -u lumerad -f -o cat

to start your node service

sudo systemctl start lumerad

Stop service

sudo systemctl stop lumerad

Restart node

sudo systemctl restart lumerad

to check sync status

lumerad status 2>&1 | jq .SyncInfo

Node info

lumerad status 2>&1 | jq .NodeInfo

show node ID

lumerad tendermint show-node-id

delete wallet

lumerad keys delete $WALLET

to check wallet balance

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

transfer funds to another wallet

lumerad tx bank send wallet <TO_WALLET_ADDRESS> 1000000ulume --from $WALLET --chain-id Lumera-testnet-1 --gas-prices=0.25ulume --gas-adjustment=1.5 --gas=auto

View evm priv key

lumerad keys unsafe-export-eth-key $WALLET

Withdraw all rewards

lumerad tx distribution withdraw-all-rewards --from $WALLET --chain-id lumera-testnet-1 --gas-prices=0.25ulume --gas-adjustment=1.5 --gas=auto

withdraw rewards and comission from your validator

lumerad tx distribution withdraw-rewards $(lumerad keys show wallet --bech val -a) --commission --from $WALLET --chain-id lumera-testnet-1 --gas-prices=0.25ulume --gas-adjustment=1.5 --gas=auto

check your balance

lumerad query bank balances $WALLET_ADDRESS

delegate to your self

lumerad tx staking delegate $(lumerad keys show wallet --bech val -a) 1000000uodis --from $WALLET --chain-id lumera-testnet-1 --gas-prices=0.25ulume --gas-adjustment=1.5 --gas=auto

redelegate stake to another validator

lumerad staking redelegate $(lumerad keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000ulume --from $WALLET --chain-id lumera-testnet-1 --gas-prices=0.25ulume --gas-adjustment=1.5 --gas=auto

unbound stake

lumerad tx staking unbond $(lumerad keys show wallet --bech val -a) 1000000ulume --from $WALLET --chain-id lumera-testnet-1 --gas-prices=0.25ulume --gas-adjustment=1.5 --gas=auto

transfer funds

lumerad tx bank send wallet <TO_WALLET_ADDRESS> 1000000ulume --from $WALLET --chain-id lumera-testnet-1 --gas-prices=0.25ulume --gas-adjustment=1.5 --gas=auto

validator details

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

jailing info

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

unjail validator

lumerad tx slashing unjail --from $WALLET --chain-id lumera-testnet-1 --gas-prices=0.25ulume --gas-adjustment=1.5 --gas=auto

active set validator

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

Delete Node

sudo systemctl stop lumerad
sudo systemctl disable lumerad
sudo rm /etc/systemd/system/lumerad.service
sudo systemctl daemon-reload
rm -f $(which lumerad)
rm -rf .lumera

Last updated