Node CLI Cheatsheet

  • Network Type: Mainnet
  • Chain-id: hippo-protocol-1
  • Current Node version: main
  • CLI Cheatsheet

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

    Wallet Management

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

    hippod keys add wallet

    Recover Wallet

    hippod keys add wallet --recover

    List Wallet

    hippod keys list

    Delete Wallet

    hippod keys delete wallet

    Check Wallet Balance

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

    Validator Management

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

    Create Validator (Staking)

    hippod tendermint show-validator
    nano /root/.hippo/validator.json
    {
      "pubkey": ,
      "amount": "1000000000000000000ahp",
      "moniker": "",
      "identity": "",
      "website": "",
      "security": "",
      "details": "",
      "commission-rate": "0.1",
      "commission-max-rate": "0.2",
      "commission-max-change-rate": "0.01",
      "min-self-delegation": "1"
    }
    hippod tx staking create-validator $HOME/.hippo/validator.json \
    --from wallet \
    --chain-id hippo-protocol-1 \
    --gas-prices=5000000000000ahp \
    --gas-adjustment=1.2 \
    --gas=auto

    Edit Validator

    hippod tx staking edit-validator \
    --new-moniker="" \
    --identity="" \
    --website="" \
    --details="" \
    --chain-id=hippo-protocol-1 \
    --commission-rate="0.15" \
    --from=wallet \
    --fees 1000000000000000000ahp

    Unjail Validator

    hippod tx slashing unjail --from wallet --chain-id hippo-protocol-1 --fees 1000000000000000000ahp

    Check Jailed Reason

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

    Token Management

    Withdraw Rewards

    hippod tx distribution withdraw-all-rewards --from wallet --chain-id hippo-protocol-1 --fees 1000000000000000000ahp

    Withdraw Rewards with Comission

    hippod tx distribution withdraw-rewards $(hippod keys show wallet --bech val -a) --commission --from wallet --chain-id hippo-protocol-1 --fees 1000000000000000000ahp

    Delegate Token to your own validator

    hippod tx staking delegate $(hippod keys show wallet --bech val -a) 1000000000000000000ahp --from wallet --chain-id hippo-protocol-1 --fees 1000000000000000000ahp

    Delegate Token to other validator

    hippod tx staking redelegate $(hippod keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000000000000000ahp --from wallet --chain-id hippo-protocol-1 --fees 1000000000000000000ahp

    Unbond Token from your validator

    hippod tx staking unbond $(hippod keys show wallet --bech val -a) 1000000000000000000ahp --from wallet --chain-id hippo-protocol-1 --fees 1000000000000000000ahp

    Send Token to another wallet

    hippod tx bank send wallet <TO_WALLET_ADDRESS> 1000000000000000000ahp --from wallet --chain-id hippo-protocol-1 --fees 1000000000000000000ahp

    Governance

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

    hippod tx gov vote 1 yes --from wallet --chain-id hippo-protocol-1 --fees 1000000000000000000ahp

    Other

    Set Your own Custom Ports You can change value CUSTOM_PORT=44 To any other ports

    • PORT=24
    sed -i.bak -e  "s%^node = \"tcp://localhost:26657\"%node = \"tcp://localhost:24657\"%" $HOME/.hippo/config/client.toml
    sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:24658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://0.0.0.0:24657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:24060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:24656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":24660\"%" $HOME/.hippo/config/config.toml
    sed -i.bak -e "s%^address = \"tcp://localhost:1317\"%address = \"tcp://localhost:24317\"%; s%^address = \"localhost:9090\"%address = \"0.0.0.0:24090\"%" $HOME/.hippo/config/app.toml

    Enable Indexing usually enabled by default

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

    Disable Indexing

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

    Reset Chain Data

    hippod tendermint unsafe-reset-all --home $HOME/.hippo --keep-addr-book

    Delete Node

    WARNING! Use this command wisely Backup your key first it will remove Defund from your system

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