Chain IDs are unique identifiers that distinguish blockchain networks from each other. Cosmos EVM uses a dual Chain ID system to maintain compatibility with both Cosmos SDK and Ethereum ecosystems.
"cosmosevm-1"
, "mychain-testnet-2"
)
Example:
9000
, 9001
)
Example:
genesis.json
:
cosmoshub-4
to cosmoshub-5
), the EVM Chain ID must remain constant across upgrades to maintain compatibility with deployed smart contracts and existing wallets.Network Type | Cosmos Chain ID | EVM Chain ID | Notes |
---|---|---|---|
Mainnet | "cosmosevm-1" | 9000 | Production network |
Testnet | "cosmosevm-testnet-1" | 9001 | Public testnet |
Devnet | "cosmosevm-dev-1" | 9002 | Development network |
Local | "cosmosevm-local-1" | 31337 | Local development |