GET /explorer/blocks
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/lighter/explorer/blocksCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeLatest Lighter ZK-rollup L2 blocks with height, timestamps, and transaction counts.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
limit | query | int | optional | Number of blocks. example: 5 |
offset | query | int | optional | Pagination offset. |
Response
type: array
pagination: none
sample: {
"[0]": "object"
}
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?limit=5"