POST
/
zks_L1ChainId
curl --request POST \
  --url https://api.mainnet.abs.xyz/zks_L1ChainId \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "zks_L1ChainId",
  "params": []
}'
{
  "jsonrpc": "2.0",
  "result": "0x1",
  "id": 1
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:zks_L1ChainId
required

The method to call

id
integer
default:1
required

Request identifier

params
any[]

No parameters

Response

200 - application/json
Returns the L1 chain ID
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

The L1 chain ID in hexadecimal format

Example:

"0x1"