GET /explorer/blocks/{height}
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/lighter/explorer/blocks/{height}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeDetailed ZK-rollup block record and included transactions by block height.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
height | path | int | required | L2 block height. example: 402901615 |
Response
type: object
data key: markets
pagination: none
sample: {
"batch_number": "int",
"block_number": "int",
"created_at": "int",
"batch_status": "null",
"batch_status_time": "null",
"batch_details": "null",
"total_transactions": "int",
"logs": "array[1]",
"markets": "array[87]"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/explorer/blocks/402901615"