curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=37111 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "zks_L1ChainId",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}
ZKS
zks_L1ChainId
Returns the chain ID of the underlying L1.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=37111 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "zks_L1ChainId",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}
Was this page helpful?