v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
ZKSync API

zks_L1ChainId

Returns the chain id of the underlying L1

post/zks_L1ChainId

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"
}