pub const fn lighter_chain_id(environment: LighterEnvironment) -> u32Expand description
Returns the L2 chain id for the given environment.
The chain id is the first element of every signed transaction’s hash preimage and must match the value the sequencer expects, otherwise signatures verify against a different message and are rejected.