ZKSync API
zks_getBlockDetails
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_getBlockDetails
Returns data about a specific block
POST
/
zks_getBlockDetails
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getBlockDetails \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getBlockDetails",
"params": [
140599
]
}'
{
"jsonrpc": "2.0",
"result": {
"baseFeePerGas": "0x5f5e100",
"commitTxHash": "0xd5a30a78d36b1a0a875abd4c0056113af33be4f2a669b07ab9b099ada5d869da",
"committedAt": "2023-10-18T14:00:33.546988Z",
"executeTxHash": "0xa11e9442340271a4495234953ac1e2ae9acc8c39bcea656544ac201a57f806a4",
"executedAt": "2023-10-18T14:05:38.651462Z",
"gasUsed": "0x0",
"l1BatchNumber": "0x1",
"l1TxCount": "0x0",
"l2TxCount": "0x0",
"number": "0x1",
"operatorAddress": "0xfeea44bc2161f360272ce5bd0577b1c3cf5a1a47",
"proveTxHash": "0x8d750a548c5c73132f9cb0e1e612a61531d2c4b636641c43c41d59fafd0a5a23",
"provenAt": "2023-10-18T14:03:11.398461Z",
"rootHash": "0x51f81bcdfc324a0dff2b5bec9d92e21cbebc4d5e29d3a3d30de3e03fbeab8d7f",
"status": "verified",
"timestamp": "0x651053b9"
},
"id": 1
}
Body
application/json
JSON-RPC version
The method to call
Call parameters
Request identifier
Response
200 - application/json
Returns the block details
The response is of type any
.
Was this page helpful?
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getBlockDetails \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getBlockDetails",
"params": [
140599
]
}'
{
"jsonrpc": "2.0",
"result": {
"baseFeePerGas": "0x5f5e100",
"commitTxHash": "0xd5a30a78d36b1a0a875abd4c0056113af33be4f2a669b07ab9b099ada5d869da",
"committedAt": "2023-10-18T14:00:33.546988Z",
"executeTxHash": "0xa11e9442340271a4495234953ac1e2ae9acc8c39bcea656544ac201a57f806a4",
"executedAt": "2023-10-18T14:05:38.651462Z",
"gasUsed": "0x0",
"l1BatchNumber": "0x1",
"l1TxCount": "0x0",
"l2TxCount": "0x0",
"number": "0x1",
"operatorAddress": "0xfeea44bc2161f360272ce5bd0577b1c3cf5a1a47",
"proveTxHash": "0x8d750a548c5c73132f9cb0e1e612a61531d2c4b636641c43c41d59fafd0a5a23",
"provenAt": "2023-10-18T14:03:11.398461Z",
"rootHash": "0x51f81bcdfc324a0dff2b5bec9d92e21cbebc4d5e29d3a3d30de3e03fbeab8d7f",
"status": "verified",
"timestamp": "0x651053b9"
},
"id": 1
}