ZKSync API

zks_L1ChainId

Returns the chain id of the underlying L1

post/zks_L1ChainId

Request

  • Base URL
    https://api.mainnet.abs.xyz
  • URL
    https://api.mainnet.abs.xyz/zks_L1ChainId
  • Auth
    none declared

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns the L1 chain ID

jsonrpcstring
idinteger
resultstring

The L1 chain ID in hexadecimal format

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x1"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.