MAINNET_CHAIN_ID

Constant MAINNET_CHAIN_ID 

Source
pub const MAINNET_CHAIN_ID: ChainId;
Expand description

Chain ID for the Mina production network (Mainnet).

This is the official chain identifier for Mina’s production blockchain network. Mainnet is the live network where real MINA tokens are transacted and the blockchain consensus operates for production use.

Key characteristics:

  • Production Ready: Used for real-world transactions and value transfer
  • Consensus Network: Participates in the live Mina protocol consensus
  • Economic Security: Protected by real economic incentives and staking
  • Finality: Transactions have real-world financial consequences

The mainnet chain ID ensures network isolation from test networks and prevents accidental cross-network connections that could compromise security.

§Hex Representation

a7351abc7ddf2ea92d1b38cc8e636c271c1dfd2c081c637f62ebc2af34eb7cc1

§Usage

use openmina_core::MAINNET_CHAIN_ID;

println!("Mainnet ID: {}", MAINNET_CHAIN_ID.to_hex());
let psk = MAINNET_CHAIN_ID.preshared_key();