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 free

Latest Lighter ZK-rollup L2 blocks with height, timestamps, and transaction counts.

Parameters

nameintypedescription
limitqueryintoptionalNumber of blocks.
example: 5
offsetqueryintoptionalPagination 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"