Node CLI Cheatsheet
CLI Cheatsheet
- Always be careful with the capitalized words
- Specify
--chain-id
Usefull Command
lumerad status 2>&1 | jq .sync_infoWallet Management
Add Wallet Specify the value <wallet> with your own wallet name
lumerad keys add walletRecover Wallet
lumerad keys add wallet --recoverList Wallet
lumerad keys listDelete Wallet
lumerad keys delete walletCheck Wallet Balance
lumerad q bank balances $(lumerad keys show wallet -a)Validator Management
Please adjust <wallet> , MONIKER , YOUR_KEYBASE_ID , YOUR_DETAILS , YOUUR_WEBSITE_URL
Create Validator (Staking)
- Check Your Pubkey
lumerad tendermint show-validator- Make File validator.json
nano $HOME/.lumera/validator.json{
"pubkey": ,
"amount": "1000000ulume",
"moniker": "",
"identity": "",
"website": "",
"security": "",
"details": ",
"commission-rate": "0.05",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}lumerad tx staking create-validator $HOME/.lumera/validator.json \
--from wallet \
--chain-id lumera-testnet-2 \
--gas-prices=0.025ulume \
--gas-adjustment=1.5 \
--gas=autoUnjail Validator
lumerad tx slashing unjail --from wallet --chain-id lumera-testnet-2 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=autoCheck Jailed Reason
lumerad query slashing signing-info $(lumerad tendermint show-validator)Token Management
Withdraw Rewards
lumerad tx distribution withdraw-all-rewards --from wallet --chain-id lumera-testnet-2 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=autoWithdraw Rewards with Comission
lumerad tx distribution withdraw-rewards $(lumerad keys show wallet --bech val -a) --commission --from wallet --chain-id lumera-testnet-2 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=autoDelegate Token to your own validator
lumerad tx staking delegate $(lumerad keys show wallet --bech val -a) 1000000ulume --from wallet --chain-id lumera-testnet-2 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=autoDelegate Token to other validator
lumerad staking redelegate $(lumerad keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000ulume --from wallet --chain-id lumera-testnet-2 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=autoUnbond Token from your validator
lumerad tx staking unbond $(lumerad keys show wallet --bech val -a) 1000000ulume --from wallet --chain-id lumera-testnet-2 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=autoSend Token to another wallet
lumerad tx bank send wallet <TO_WALLET_ADDRESS> 1000000ulume --from wallet --chain-id lumera-testnet-2 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=autoOther
Set Your own Custom Ports You can change value CUSTOM_PORT=17 To any other ports
PORT=17
sed -i -e "s%:26657%:${PORT}657%" $HOME/.lumera/config/client.toml
sed -i -e "s%:26658%:${PORT}658%; s%:26657%:${PORT}657%; s%:6060%:${PORT}060%; s%:26656%:${PORT}656%; s%:26660%:${PORT}660%" $HOME/.lumera/config/config.toml
sed -i -e "s%:1317%:${PORT}317%; s%:9090%:${PORT}090%" $HOME/.lumera/config/app.tomlEnable Indexing usually enabled by default
sed -i 's|^indexer *=.*|indexer = "kv"|' $HOME/.lumera/config/config.tomlDisable Indexing
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.lumera/config/config.tomlReset Chain Data
lumerad tendermint unsafe-reset-all --home $HOME/.lumera --keep-addr-bookDelete Node
WARNING! Use this command wisely Backup your key first it will remove Defund from your system
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