Node CLI Cheatsheet

  • Network Type: Mainnet
  • Chain-id: lumera-mainnet-1
  • Current Node version: v1.5.0
  • CLI Cheatsheet

    • Always be careful with the capitalized words
    • Specify --chain-id

    Usefull Command

    lumerad status 2>&1 | jq .sync_info

    Wallet Management

    Add Wallet Specify the value <wallet> with your own wallet name

    lumerad keys add wallet

    Recover Wallet

    lumerad keys add wallet --recover

    List Wallet

    lumerad keys list

    Delete Wallet

    lumerad keys delete wallet

    Check 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-mainnet-1 \
    --gas-prices=0.025ulume \
    --gas-adjustment=1.5 \
    --gas=auto

    Unjail Validator

    lumerad tx slashing unjail --from wallet --chain-id lumera-mainnet-1 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=auto

    Check 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-mainnet-1 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=auto

    Withdraw Rewards with Comission

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

    Delegate Token to your own validator

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

    Delegate Token to other validator

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

    Unbond Token from your validator

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

    Send Token to another wallet

    lumerad tx bank send wallet <TO_WALLET_ADDRESS> 1000000ulume --from wallet --chain-id lumera-mainnet-1 --gas-prices=0.025ulume --gas-adjustment=1.5 --gas=auto

    Other

    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.toml

    Enable Indexing usually enabled by default

    sed -i 's|^indexer *=.*|indexer = "kv"|' $HOME/.lumera/config/config.toml

    Disable Indexing

    sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.lumera/config/config.toml

    Reset Chain Data

    lumerad tendermint unsafe-reset-all --home $HOME/.lumera --keep-addr-book

    Delete 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