Node CLI Cheatsheet

  • Network Type: Mainnet
  • Chain-id: centauri-1
  • Current Node version: 4.5.0
  • Wallet Management

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

    centaurid keys add wallet

    Recover Wallet

    centaurid keys add wallet --recover

    List Wallet

    centaurid keys list

    Delete Wallet

    centaurid keys delete wallet

    Check Wallet Balance

    centaurid q bank balances $(centaurid keys show wallet -a)

    Validator Management

    Please adjust <wallet> , MONIKER , YOUR_KEYBASE_ID , YOUR_DETAILS , YOUUR_WEBSITE_URL

    Create Validator (Staking) with 100 EBL

    centaurid tx staking create-validator \
    --amount 1000000ppica \
    --moniker="" \
    --identity="" \
    --details="" \
    --website="" \
    --security-contact="" \
    --pubkey $(centaurid tendermint show-validator) \
    --chain-id centauri-1
    --commission-rate 0.1 \
    --commission-max-rate 0.20 \
    --commission-max-change-rate 0.01 \
    --min-self-delegation 1 \
    --from wallet \
    --gas-adjustment 1.4 \
    --gas auto \
    --gas-prices 0ppica \
    -y

    Edit Validator

    centaurid tx staking edit-validator \
    --new-moniker="" \
    --identity="YOUR_KEYBASE_ID" \
    --details="YOUR_DETAILS" \
    --website="YOUR_WEBSITE_URL"
    --chain-id archway-1 \
    --from=<wallet> \
    --gas-adjustment=1.4 \
    --gas auto \
    --gas-prices 0ppica \
    -y

    Unjail Validator

    centaurid tx slashing unjail --from wallet --chain-id centauri-1 --gas-adjustment 1.4 --gas auto --gas-prices 0ppica -y

    Check Jailed Reason

    centaurid query slashing signing-info $(centaurid tendermint show-validator)

    Token Management

    Withdraw Rewards

    centaurid tx distribution withdraw-all-rewards --from wallet --chain-id centauri-1 --gas-adjustment 1.4 --gas 55000 --gas-prices 0ppica -y

    Withdraw Rewards with Comission

    centaurid tx distribution withdraw-rewards $(centaurid keys show wallet --bech val -a) --commission --from wallet --chain-id centauri-1 --gas-adjustment 1.4 --gas auto --gas-prices 0ppica -y

    Delegate Token to your own validator

    centaurid tx staking delegate <TO_VALOPER_ADDRESS> 1000000ppica --from wallet --chain-id centauri-1 --gas-adjustment 1.4 --gas auto --gas-prices 0ppica -y

    Unbond Token from your validator

    centaurid tx staking unbond $(centaurid keys show wallet --bech val -a) 1000000ppica --from wallet --chain-id centauri-1 --gas-adjustment 1.4 --gas auto --gas-prices 0ppica -y

    Send Token to another wallet

    centaurid tx bank send wallet <TO_WALLET_ADDRESS> 1000000ppica --from wallet --chain-id centauri-1

    Governance

    Vote You can change the value of yes to no,abstain,nowithveto

    centaurid tx gov vote 1 yes --from wallet --chain-id centauri-1 --gas-adjustment=1.4 --gas auto --gas-prices 0ppica -y

    Other

    Set Your own Custom Ports

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

    Enable Indexing usually enabled by default

    sed -i -e "s/^indexer *=.*/indexer = \"kv\"/" $HOME/.banksy/config/config.toml

    Disable Indexing

    sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.banksy/config/config.toml

    Reset Chain Data

    centaurid tendermint unsafe-reset-all --home $HOME/.banksy --keep-addr-book

    Delete Node

    WARNING! Use this command wisely Backup your key first it will remove Planq

    sudo systemctl stop centaurid
    sudo systemctl disable centaurid
    sudo rm /etc/systemd/system/centaurid.service
    sudo systemctl daemon-reload
    rm -f $(which centaurid)
    rm -rf $HOME/.banksy
    rm -rf $HOME/composable-centauri