v1

latestOpenAPI 3.0.02026-07-26268286602.5 KB
blocks

List L2 blocks in an Optimism batch

Retrieves L2 blocks that are bound to a specific Optimism batch number.

get/{chain_id}/api/v2/blocks/optimism-batch/{batch_number_param}

Path parameters

batch_number_paraminteger required

Batch number

chain_idstring required

The ID of the blockchain

Query parameters

items_countinteger

Number of items per page

block_numberinteger

Block number for paging

Response

L2 blocks in the specified Optimism batch.

next_page_paramsobject nullable required

Example response

{
  "next_page_params": {
    "block_number": 22566361
  }
}