curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getL1BatchDetails \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getL1BatchDetails",
"params": [
1
]
}'
{
"jsonrpc": "2.0",
"result": {
"baseSystemContractsHashes": {
"bootloader": "0x010007fcd651b289b6490bd5c486c8e4991528709311b88d821e55dc7f9fb9d8",
"defaultAa": "0x0100066a8106bcdf1ce55cc99fa43c0f23d883755572b17e9a00d8cfa8f145f6"
},
"commitTxHash": "0xb5f9b86c661053e7d7e864f11bc33bf9fa2c6dc9d5432cf0fa7bf0bce5921747",
"committedAt": "2023-10-18T14:00:33.546988Z",
"executeTxHash": "0x2a7ab1ccf99cb20765f3ae5b079a9be8c77df3b84fe1e237c262cb0b7d92e4c6",
"executedAt": "2023-10-18T14:05:38.651462Z",
"l1GasPrice": "0x2a0aafd7c",
"l1TxCount": "0x1",
"l2FairGasPrice": "0x5f5e100",
"l2TxCount": "0x2",
"number": "0x1",
"proveTxHash": "0xc47a5a9407df1c95e71a9de9e7dba8e28a6922e55a99cf8d7f9d706afc89958c",
"provenAt": "2023-10-18T14:03:11.398461Z",
"rootHash": "0x4bff3066df2ac2fbf2d8c1267ce9afab85a8e8b406ab849f94f4defcb618a4b8",
"status": "verified",
"timestamp": "0x6530111a"
},
"id": 1
}
Returns data pertaining to a specific L1 batch
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getL1BatchDetails \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getL1BatchDetails",
"params": [
1
]
}'
{
"jsonrpc": "2.0",
"result": {
"baseSystemContractsHashes": {
"bootloader": "0x010007fcd651b289b6490bd5c486c8e4991528709311b88d821e55dc7f9fb9d8",
"defaultAa": "0x0100066a8106bcdf1ce55cc99fa43c0f23d883755572b17e9a00d8cfa8f145f6"
},
"commitTxHash": "0xb5f9b86c661053e7d7e864f11bc33bf9fa2c6dc9d5432cf0fa7bf0bce5921747",
"committedAt": "2023-10-18T14:00:33.546988Z",
"executeTxHash": "0x2a7ab1ccf99cb20765f3ae5b079a9be8c77df3b84fe1e237c262cb0b7d92e4c6",
"executedAt": "2023-10-18T14:05:38.651462Z",
"l1GasPrice": "0x2a0aafd7c",
"l1TxCount": "0x1",
"l2FairGasPrice": "0x5f5e100",
"l2TxCount": "0x2",
"number": "0x1",
"proveTxHash": "0xc47a5a9407df1c95e71a9de9e7dba8e28a6922e55a99cf8d7f9d706afc89958c",
"provenAt": "2023-10-18T14:03:11.398461Z",
"rootHash": "0x4bff3066df2ac2fbf2d8c1267ce9afab85a8e8b406ab849f94f4defcb618a4b8",
"status": "verified",
"timestamp": "0x6530111a"
},
"id": 1
}
Returns the details of the L1 batch
The response is of type any
.
Was this page helpful?