Skip to main content

Cosmos Address Extraction Guide

  1. List all keys:

    • Command: gaiacli keys list
    • Outputs:
      • Account Address: cosmos1_________
      • Account Public Key: cosmospub1_________
  2. Validator Consensus Address:

    • Command: gaiad tendermint show-address
    • Output: cosmosvalcons1_________
  3. Validator Consensus Public Key:

    • Command: gaiad tendermint show-validator
    • Output: cosmosvalconspub1_________
  4. Validator Operator Address:

    • Command: gaiacli keys show freshatoms --bech val
    • Outputs:
      • Validator Operator Address: cosmosvaloper1_________
      • Validator Operator Public Key: cosmosvaloperpub1_________
  5. HEX ID from Validator Consensus Address:

    • Command: gaiakeyutil cosmosvalcons1_________
    • Output: HEX ID

This guide summarizes the commands to extract different Cosmos addresses and public keys.