Skip to main content

lighter_chain_id

Function lighter_chain_id 

Source
pub const fn lighter_chain_id(environment: LighterEnvironment) -> u32
Expand 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.