Node CLI Cheatsheet

  • Network Type: Mainnet
  • Chain-id: hippo-protocol-1
  • Current Node version: v1.0.1
  • 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

    PORT=115
    sed -i -e "s|^chain-id *=.*|chain-id = \"hippo-protocol-1\"|" $HOME/.hippo/config/client.toml
    sed -i -e "s%:26657%:${PORT}57%" $HOME/.hippo/config/client.toml
    sed -i -e "s%:26658%:${PORT}58%; s%:26657%:${PORT}57%; s%:6060%:${PORT}60%; s%:26656%:${PORT}56%; s%:26660%:${PORT}60%" $HOME/.hippo/config/config.toml
    sed -i -e "s%:1317%:${PORT}17%; s%:9090%:${PORT}90%" $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