Skip to main content
GET
/
v2
/
optimism
/
batches
List batches.
curl --request GET \
  --url http://localhost/api/v2/optimism/batches
{
  "items": [
    {
      "after_acc_hash": "<string>",
      "before_acc_hash": "<string>",
      "commitment_transaction": {
        "block_number": 1,
        "hash": "<string>",
        "status": "unfinalized",
        "timestamp": "2023-11-07T05:31:56Z"
      },
      "data_availability": {
        "batch_data_container": "in_blob4844"
      },
      "end_block_number": 1,
      "number": 1,
      "start_block_number": 1,
      "transactions_count": 1
    }
  ],
  "next_page_params": {
    "id": 394591,
    "items_count": 50
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.blockscout.com/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

apikey
string

API key for rate limiting or for sensitive endpoints

key
string

Secret key for getting access to restricted resources

id
integer

ID for paging

items_count
integer

Number of items returned per page

Required range: 1 <= x <= 50

Response

List of batches.

items
Batch · object[]
required
next_page_params
object
required
Example:
{ "id": 394591, "items_count": 50 }