Parameters
chainId
string
default:"324"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"zks_getL1BatchDetails"
required
JSON-RPC method name.
Positional parameters for zks_getL1BatchDetails:params[]: The layer 1 batch number to query details for.
Returns
The JSON-RPC result.
baseSystemContractsHashes
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=324 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "zks_getL1BatchDetails",
"params": [
12345
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseSystemContractsHashes": {
"bootloader": "0x010007793a328ef16cc7086708f7f3292ff9b5eed9e7e539c184228f461bf4ef",
"default_aa": "0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc"
},
"commitTxHash": "0xd045e3698f018cb233c3817eb53a41a4c5b28784ffe659da246aa33bda34350c",
"committedAt": "2023-03-26T07:21:21.046817Z",
"executeTxHash": "0xbb66aa75f437bb4255cf751badfc6b142e8d4d3a4e531c7b2e737a22870ff19e",
"executedAt": "2023-03-27T07:44:52.187764Z",
"l1BatchNumber": 12345,
"l1GasPrice": 20690385511,
"l1TxCount": 0,
"__truncated": true
}
}