debug
The debug module is a tool for simple debugging.

Available Commands

Name
Description
addr
Convert an address between hex and bech32
pubkey
Decode a ED25519 pubkey from hex, base64, or bech32
raw-bytes
Convert raw bytes output (eg. [10 21 13 127]) to hex

junod debug addr

Convert juno address between hex and bech32 format.
1
junod debug addr [address] [flags]
Copied!
TIP
The command will accept either hex or bech32 coded address as the [address] argument. The command will return the same output for either.
TIP
Your bech32 encoded juno local addresses can be queried with junod keys list
Example usage:
1
# query bech32 encoded address
2
junod debug addr juno1ludczrvlw36fkur9vy49lx4vjqhppn30h42ufg
3
4
# query hex address
5
junod debug addr FF1B810D9F74749B7065612A5F9AAC902E10CE2F
Copied!
Returns:
1
Address: [255 27 129 13 159 116 116 155 112 101 97 42 95 154 172 144 46 16 206 47]
2
Address (hex): FF1B810D9F74749B7065612A5F9AAC902E10CE2F
3
Bech32 Acc: juno1ludczrvlw36fkur9vy49lx4vjqhppn30h42ufg
4
Bech32 Val: junovaloper1ludczrvlw36fkur9vy49lx4vjqhppn30ggunj3
Copied!

junod debug pubkey

Decode a ED25519 pubkey from hex, base64, or bech32.
1
junod debug pubkey [pubkey] [flags]
Copied!
TIP
The command will accept hex, base64 or bech32 coded keys as [pubkey] argument. The command will return the same output for any of these inputs.
TIP
Your bech32 encoded validator pubkey can be queried with junod tendermint show-validator
Example usage:
1
# query hex address
2
junod debug pubkey F2AF5F796A1626C8BB51535E361F2E4B66A61B9AAD177B83452E0FCD5A14690DE
3
4
# query base64 encoded address
5
junod debug pubkey 8q9feWoWJsi7UVNeNh8uS2amG5qtF3uDRS4PzVoUaQ0=
6
7
# query base32 encoded address
8
junod debug pubkey junopub1zcjduepq72h477t2zcnv3w632d0rv8ewfdn2vxu645thhq699c8u6ks5dyxs7f2qt6Returns something similar to:
Copied!
Returns:
1
Address: A50DF747BBF892E0FB0BCBAE6C3E2A5AE4A17D5A
2
Hex: F2AF5F796A1626C8BB51535E361F2E4B66A61B9AAD177B83452E0FCD5A14690D
3
JSON (base64): {"type":"tendermint/PubKeyEd25519","value":"8q9feWoWJsi7UVNeNh8uS2amG5qtF3uDRS4PzVoUaQ0="}
4
Bech32 Acc: junopub1zcjduepq72h477t2zcnv3w632d0rv8ewfdn2vxu645thhq699c8u6ks5dyxs7f2qt6
5
Bech32 Validator Operator: junovaloperpub1zcjduepq72h477t2zcnv3w632d0rv8ewfdn2vxu645thhq699c8u6ks5dyxssaf8x6
6
Bech32 Validator Consensus: junovalconspub1zcjduepq72h477t2zcnv3w632d0rv8ewfdn2vxu645thhq699c8u6ks5dyxsahwpfj
Copied!

junod debug raw-bytes

Convert raw bytes output (eg. [10 21 13 127]) to hex.
1
junod debug raw-bytes <raw-bytes>
Copied!
Example command:
1
junod debug raw-bytes "10 21 13 127"
Copied!
Returns:
1
0A150D7F
Copied!
Last modified 2mo ago