Welcome to StaFiHub
  • StaFiHub Introduction
    • Tokenomics
  • Chain
    • Getting started
      • Introduction
      • Install
      • Join The Mainnet
      • Join The Public Testnet
      • Validator FAQ
    • Concepts
      • General Concepts
      • rToken Concepts
      • Genesis Parameters
    • Cli Client
      • Introduction
      • Bank
      • Debug
      • Keys
      • Gov
      • Ledger
      • rBank
      • Relayers
      • rVote
      • Staking
    • gRPC, REST, and Tendermint Endpoints
    • Resources
      • StaFiHub Validator Program
  • rToken
    • Integrate rToken
      • Integrating with Interchain Accounts
      • Integrating with Multisig Accounts
      • Integrate into rToken App
    • Delegation Algorithm
    • Liquidity Grant Program
    • rATOM Migration
  • User
    • Join Public Testnet
      • Testing Guide
    • User Guide
      • rToken Dapp Guide
      • Get FIS Token on StaFiHub
      • Claim Airdropped FIS Token
      • How to get a StaFiHub Address
      • rPool Guide For MintDrop Programs
      • rATOM V1 Migration
      • StaFiHub rBridge Guide
      • IBC Transfer With Keplr Wallet
      • Swap ICS20 FIS to ERC20 FIS
    • FAQ
Powered by GitBook
On this page
  • Available Commands
  • stafihubd debug addr
  • stafihubd debug pubkey
  • stafihubd debug raw-bytes
  1. Chain
  2. Cli Client

Debug

A tool for simple debugging.

Available Commands

Name
Description

Convert an address between hex and bech32

Decode a pubkey from proto JSON

Convert raw bytes output (eg. [10 21 13 127]) to hex

stafihubd debug addr

stafihubd debug addr stafi1m3uxpmweefjdj9kcy3aserws5ggkjsyv50rsh4

returns

Address: [220 120 96 237 217 202 100 217 22 216 36 123 12 141 208 162 17 105 64 140]
Address (hex): DC7860EDD9CA64D916D8247B0C8DD0A21169408C
Bech32 Acc: stafi1m3uxpmweefjdj9kcy3aserws5ggkjsyv50rsh4
Bech32 Val: stafivaloper1m3uxpmweefjdj9kcy3aserws5ggkjsyvv5uecu

stafihubd debug pubkey

stafihubd debug pubkey '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AurroA7jvfPd1AadmmOvWM2rJSwipXfRf8yD6pLbA2DJ"}'

returns

Address: 620B7D22188F8BDBA267DAF89A857081092A6A6C
PubKey Hex: 02eaeba00ee3bdf3ddd4069d9a63af58cdab252c22a577d17fcc83ea92db0360c9

stafihubd debug raw-bytes

stafihubd debug raw-bytes '[72 101 108 108 111 44 32 112 108 97 121 103 114 111 117 110 100]'

returns

48656C6C6F2C20706C617967726F756E64
PreviousBankNextKeys

Last updated 3 years ago

addr
pubkey
raw-bytes