Chain IDs

StarkNet currently supports two chain IDs.

Chain IDs are given as numbers, representing an encoding of specific constants as bytes (ASCII) using big-endian.

Specifically:

chain_id := int.from_bytes(value, byteorder=“big”, signed=False)

Where

  1. int.from_bytes refers to the python library function.
  2. The value is one of the two constants listed below.

Two constants are currently used:

  • “SN_MAIN” for the deployment of StarkNet’s main network.
  • “SN_GOERLI” for deployment on the StarkNet test net.