Chain ID and Address Format
Chain ID
Cronos has different Chain IDs to distinguish between the devnet, testnet and mainnet. When running Cronos in your local environment, you will need to decide your own Chain ID.
For example, our testnet Chain ID is cronostestnet_338-1
.
Address prefix
BIP-0173 defines a new format for segregated witness output addresses that contains a human-readable part which identifies the coin type. Cronos has different address prefixes for its corresponding network types, these prefixes are:
Testnet |
---|
|
Cronos uses the Bech32 address format wherever users must handle binary data. Bech32 encoding provides robust integrity checks on data and the human readable part (HRP) that provides contextual hints that can assist UI developers with providing informative error messages. Specifically, we have the following HRP prefixes for different address types in the mainnet:
Address bech32 Prefix | |
---|---|
Account |
|
Validator Operator |
|
Consensus Nodes |
|
We can use the keys show
command of cronosd
with the flag --bech <type> (acc|val|cons)
to obtain the addresses and keys as mentioned above.
For example:
Last updated