ZKSync API
zks_getL1BatchDetails
Overview
Ethereum API
- POSTeth_chainId
- POSTeth_call
- POSTeth_estimateGas
- POSTeth_gasPrice
- POSTeth_newFilter
- POSTeth_newBlockFilter
- POSTeth_uninstallFilter
- POSTeth_newPendingTransactionFilter
- POSTeth_getLogs
- POSTeth_getFilterLogs
- POSTeth_getFilterChanges
- POSTeth_getBalance
- POSTweb3_clientVersion
- POSTeth_getBlockByNumber
- POSTeth_getBlockByHash
- POSTeth_getBlockTransactionCountByNumber
- POSTeth_getBlockReceipts
- POSTeth_getBlockTransactionCountByHash
- POSTeth_getCode
- POSTeth_getStorageAt
- POSTeth_getTransactionCount
- POSTeth_sendRawTransaction
- POSTeth_accounts
- POSTeth_feeHistory
ZKSync API
- POSTzks_estimateFee
- POSTzks_estimateGasL1ToL2
- POSTzks_getBridgehubContract
- POSTzks_getMainContract
- POSTzks_getTestnetPaymaster
- POSTzks_getL1BatchBlockRange
- POSTzks_getL1BatchDetails
- POSTzks_L1BatchNumber
- POSTzks_L1ChainId
- POSTzks_getConfirmedTokens
- POSTzks_getAllAccountBalances
- POSTzks_getTransactionDetails
- POSTzks_getBlockDetails
- POSTzks_getBridgeContracts
- POSTzks_getBaseTokenL1Address
- POSTzks_getL2ToL1MsgProof
- POSTzks_getL2ToL1LogProof
- POSTzks_getRawBlockTransactions
- POSTzks_getBytecodeByHash
- POSTzks_getL1GasPrice
- POSTzks_getFeeParams
- POSTzks_getProtocolVersion
- POSTzks_getProof
- POSTzks_sendRawTransactionWithDetailedOutput
Debug API
PubSub API
ZKSync API
zks_getL1BatchDetails
Returns data pertaining to a specific L1 batch
POST
/
zks_getL1BatchDetails
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
}
Body
application/json
JSON-RPC version
The method to call
Call parameters
Request identifier
Response
200 - application/json
Returns the details of the L1 batch
The response is of type any
.
Was this page helpful?
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
}