Skip to content

Hippo Cheat Sheet and Key Management

This guide provides essential commands for managing wallets, nodes, and validators on the Hippo Protocol network. Make sure the environment variables mentioned at the end are correctly configured before using these commands.

1. Key Management

Create a New Wallet

bash
hippod keys add $WALLET

Keep the generated seed phrase safe. It is the only way to recover your wallet.

Recover Wallet from Seed Phrase

bash
hippod keys add $WALLET --recover

You will be prompted to enter your seed phrase.

List Wallets

bash
hippod keys list

Show Wallet Details

bash
hippod keys show $WALLET

Delete Wallet

bash
hippod keys delete $WALLET

2. Wallet Operations

Check Balance

bash
hippod query bank balances $(hippod keys show $WALLET -a)

Send Tokens

bash
hippod tx bank send $(hippod keys show $WALLET -a) <receiver_wallet_address> <amount><denom> --chain-id $HIPPO_CHAIN_ID --gas-prices 0.0001ahp --gas-adjustment 1.5 --gas auto -y

Example:

bash
hippod tx bank send $(hippod keys show $WALLET -a) hippo1...yyy 1000000ahp --chain-id $HIPPO_CHAIN_ID --gas-prices 0.0001ahp --gas-adjustment 1.5 --gas auto -y

Replace <amount> with the number of tokens and <denom> with the token denomination (e.g., ahp).

3. Validator Management

Ensure you have enough ahp tokens for self-delegation and transaction fees before creating a validator.

Create Validator

Configuration:

Generated Code:

Loading...
Parameter Explanation:
ParameterDetails
--amountTokens self-delegated to the validator. 1000000000000000000ahp = 1 HP
--fromWallet used for the transaction.
--commission-rateInitial commission rate.
--commission-max-rateMaximum allowed commission rate.
--commission-max-change-rateMax daily commission change.
--min-self-delegationMinimum tokens for self-delegation.
--pubkeyValidator's public key.
--monikerValidator nickname.
--identityKeybase ID for identity verification.
--websiteValidator's website URL.
--detailsValidator description.
--security-contactEmail for security-related contact.

Edit Validator

bash
hippod tx staking edit-validator \
--moniker "$MONIKER" \
--identity "<new_keybase_id>" \
--website "<new_website>" \
--security-contact "<new_contact_email>" \
--details "<new_description>" \
--commission-rate "0.07" \
--chain-id $HIPPO_CHAIN_ID \
--gas-prices 1000000000000ahp \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y

Delegate Tokens

bash
hippod tx staking delegate $(hippod keys show $WALLET --bech val -a) <amount>ahp \
  --chain-id $HIPPO_CHAIN_ID \
  --gas-prices 1000000000000ahp \
  --gas-adjustment 1.5 \
  --gas auto \
  --from $WALLET \
  -y

Withdraw Rewards (Delegator)

bash
hippod tx distribution withdraw-rewards $(hippod keys show $WALLET --bech val -a) \
--chain-id $HIPPO_CHAIN_ID \
--gas-prices 1000000000000ahp \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y

Withdraw Rewards (Validator Commission)

bash
hippod tx distribution withdraw-rewards $(hippod keys show $WALLET --bech val -a) --commission \
--chain-id $hippod_CHAIN_ID \
--gas-prices 1000000000000ahp \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y

Unbond Tokens

bash
hippod tx staking unbond $(hippod keys show $WALLET --bech val -a) <amount>ahp \
--chain-id $HIPPO_CHAIN_ID \
--gas-prices 1000000000000ahp \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y

Redelegate Tokens

bash
hippod tx staking redelegate $(hippod keys show $WALLET --bech val -a) <destination_validator_address> <amount>ahp \
--chain-id $HIPPO_CHAIN_ID \
--gas-prices 1000000000000ahp \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y

4. Node Status & Info

Check Sync Status

bash
hippod status 2>&1 | jq .result.sync_info

Check Peer Info

bash
hippod status 2>&1 | jq .result.sync_info.catching_up
hippod status 2>&1 | jq .result.node_info.listen_addr

Show Node ID

bash
hippod tendermint show-node-id

Restart Node

bash
sudo systemctl restart hippod

View Node Logs

bash
sudo journalctl -u hippod -fo cat

5. Governance

List Proposals

bash
hippod query gov proposals

View Proposal Details

bash
hippod query gov proposal <proposal_id>

Vote on Proposal

bash
hippod tx gov vote <proposal_id> <yes|no|no_with_veto|abstain> \
--chain-id $HIPPO_CHAIN_ID \
--gas-prices 1000000000000ahp \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y

6. Environment Variables

Make sure to set these in your ~/.bash_profile or equivalent shell config:

bash
export WALLET="wallet"
export MONIKER="YourMoniker"
export HIPPO_CHAIN_ID="hippo-protocol-1"
export HIPPO_PORT="10"

Apply the changes with:

bash
source ~/.bash_profile

This cheat sheet is provided to streamline Hippo Protocol validator and wallet management.