# Blockscout — List L2 blocks in a Scroll batch

List Blockscout Scroll batch blocks via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Blockscout, pass parameters such as Set, and retrieve structured data including L2 block hash, L2 block height, reported block timestamp, reported block transaction count, and reported block gas used for batch detail pages, and rollup inspection.

Documentation: https://openany.si/blockscout/blockscout-list-l2-blocks-in-a-scroll-batch/1ce1910c-f896-4608-a034-8b3b332878d6/
API ID: 1ce1910c-f896-4608-a034-8b3b332878d6
Provider: blockscout
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockscout/{chain_id}/api/v2/blocks/scroll-batch/{batch_number_param}
Page update time: 2026-12-03T02:49:21.145Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:20.370Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockscout Scroll Batch Blocks API

Provide chain\_id and the non-negative integer batch\_number\_param on the scroll-batch block route. items contains L2 block records. Continue with block\_number of at least 0 and optional items\_count of at least 1.

## What You Can Build

- **Batch detail pages**: Display the blocks associated with one batch.
- **Rollup inspection**: Keep batch identity separate from block height and hash.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `items[].hash` | L2 block hash |
| `items[].height` | L2 block height |
| `items[].timestamp` | Reported block timestamp |
| `items[].transactions_count` | Reported block transaction count |
| `items[].gas_used` | Reported block gas used |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Blockscout — List L2 blocks in a Scroll batch request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "batch_number_param": {
          "type": "integer",
          "description": "Batch number",
          "minimum": 0
        },
        "chain_id": {
          "type": "string",
          "description": "The ID of the blockchain"
        }
      },
      "required": [
        "batch_number_param",
        "chain_id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "items_count": {
          "type": "integer",
          "description": "Number of items per page",
          "minimum": 1
        },
        "block_number": {
          "type": "integer",
          "description": "Block number for paging",
          "minimum": 0
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "base_fee_per_gas": {
            "type": "string"
          },
          "burnt_fees": {
            "type": "string"
          },
          "burnt_fees_percentage": {
            "type": "integer"
          },
          "difficulty": {
            "type": "string"
          },
          "gas_limit": {
            "type": "string"
          },
          "gas_target_percentage": {
            "type": "integer"
          },
          "gas_used": {
            "type": "string"
          },
          "gas_used_percentage": {
            "type": "integer"
          },
          "hash": {
            "type": "string"
          },
          "height": {
            "type": "integer"
          },
          "internal_transactions_count": {
            "type": "integer"
          },
          "is_pending_update": {
            "type": "boolean"
          },
          "miner": {
            "type": "object",
            "properties": {
              "ens_domain_name": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              },
              "implementations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "address_hash": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                }
              },
              "is_contract": {
                "type": "boolean"
              },
              "is_scam": {
                "type": "boolean"
              },
              "is_verified": {
                "type": "boolean"
              },
              "metadata": {
                "type": "object",
                "properties": {
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "meta": {
                          "type": "object",
                          "properties": {}
                        },
                        "name": {
                          "type": "string"
                        },
                        "ordinal": {
                          "type": "integer"
                        },
                        "slug": {
                          "type": "string"
                        },
                        "tagType": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              "name": {
                "type": "string"
              },
              "proxy_type": {
                "type": "string"
              },
              "reputation": {
                "type": "string"
              }
            }
          },
          "nonce": {
            "type": "string"
          },
          "parent_hash": {
            "type": "string"
          },
          "priority_fee": {
            "type": "string"
          },
          "rewards": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "reward": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                }
              }
            }
          },
          "size": {
            "type": "integer"
          },
          "timestamp": {
            "type": "string"
          },
          "total_difficulty": {
            "type": "string"
          },
          "transaction_fees": {
            "type": "string"
          },
          "transactions_count": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          },
          "uncles_hashes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "hash": {
                  "type": "string"
                }
              }
            }
          },
          "withdrawals_count": {
            "type": "integer"
          }
        }
      }
    },
    "next_page_params": {
      "type": "object",
      "properties": {
        "block_number": {
          "type": "integer"
        }
      }
    }
  }
}
```

## Request example
Scenario: Schema template · Schema template (not executed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockscout/%3Cchain_id%3E/api/v2/blocks/scroll-batch/0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Documented HTTP 200
```json
{
  "items": [
    {
      "base_fee_per_gas": "<base_fee_per_gas>",
      "burnt_fees": "<burnt_fees>",
      "burnt_fees_percentage": 0,
      "difficulty": "<difficulty>",
      "gas_limit": "<gas_limit>",
      "gas_target_percentage": 0,
      "gas_used": "<gas_used>",
      "gas_used_percentage": 0,
      "hash": "<hash>",
      "height": 0,
      "internal_transactions_count": 0,
      "is_pending_update": false,
      "miner": {
        "ens_domain_name": "<ens_domain_name>",
        "hash": "<hash>",
        "implementations": [
          {
            "address_hash": "<address_hash>",
            "name": "<name>"
          }
        ],
        "is_contract": false,
        "is_scam": false,
        "is_verified": false,
        "metadata": {
          "tags": [
            {
              "meta": {},
              "name": "<name>",
              "ordinal": 0,
              "slug": "<slug>",
              "tagType": "<tagType>"
            }
          ]
        },
        "name": "<name>",
        "proxy_type": "eip1167",
        "reputation": "ok"
      },
      "nonce": "<nonce>",
      "parent_hash": "<parent_hash>",
      "priority_fee": "<priority_fee>",
      "rewards": [
        {
          "reward": "<reward>",
          "type": "emission_funds"
        }
      ],
      "size": 0,
      "timestamp": "<timestamp>",
      "total_difficulty": "<total_difficulty>",
      "transaction_fees": "<transaction_fees>",
      "transactions_count": 0,
      "type": "block",
      "uncles_hashes": [
        {
          "hash": "<hash>"
        }
      ],
      "withdrawals_count": 0
    }
  ],
  "next_page_params": {
    "block_number": 22566361
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Is batch_number_param a block height?
No. It selects a batch; each returned block has its own height and hash.

### Which pagination inputs are exposed?
Use block_number and items_count. This block-list route does not expose the transaction-list index cursor.

### Can I reuse the same batch number across rollups?
Keep the rollup-specific route and chain context with the batch number.

### Does this return all transaction objects in the batch?
It lists blocks. Use the corresponding batch transaction route for transaction records.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- blockscout: https://openany.si/blockscout/blockscout-list-l2-blocks-in-a-scroll-batch/1ce1910c-f896-4608-a034-8b3b332878d6/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
