# Chain ID

Learn about the Majestic StarChain chain-id format

# Official Chain IDs

# The Chain Identifier

Every chain must have a unique identifier or chain-id. Tendermint requires each application to define its own chain-id in the genesis.json fields (opens new window). However, in order to comply with both EIP155 and Cosmos standard for chain upgrades, Majestic StarChain-compatible chains must implement a special structure for their chain identifiers.

# Structure

The Majestic StarChain Chain ID contains 3 main components

  • Identifier: Unstructured string that defines the name of the application.
  • EIP155 Number: Immutable EIP155 (opens new window) CHAIN_ID that defines the replay attack protection number.
  • Version Number: Is the version number (always positive) that the chain is currently running. This number MUST be incremented every time the chain is upgraded or forked in order to avoid network or consensus errors.

# Format

The format for specifying and Majestic StarChain compatible chain-id in genesis is the following:

Copy {identifier}_{EIP155}-{version}