Check out our new component library - build.abs.xyz!
cURL
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 }
Returns the chain id of the underlying L1
JSON-RPC version
The method to call
Request identifier
No parameters
Returns the L1 chain ID
"2.0"
1
The L1 chain ID in hexadecimal format
"0x1"
Was this page helpful?