Skip to main content
GET
/
v2
/
scroll
/
batches
/
{number}
Batch by its number.
curl --request GET \
  --url http://localhost/api/v2/scroll/batches/{number}
{
  "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
}

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.

Path Parameters

number
string
required

Batch number in the path.

Pattern: ^-?([1-9][0-9]*|0)$

Query Parameters

apikey
string

API key for rate limiting or for sensitive endpoints

key
string

Secret key for getting access to restricted resources

Response

Batch info.

Detailed Arbitrum batch info.

after_acc_hash
string
required

Accumulator hash of the sequencer inbox after this batch was appended. Must equal before_acc_hash of the next batch.

Pattern: ^0x([A-Fa-f0-9]{64})$
before_acc_hash
string
required

Accumulator hash of the sequencer inbox before this batch was appended. Forms a hash chain: must equal after_acc_hash of the previous batch.

Pattern: ^0x([A-Fa-f0-9]{64})$
commitment_transaction
CommitmentTransaction · object
required

Parent chain transaction that committed the batch.

data_availability
Base · object
required

Data availability information. Structure varies by batch_data_container type.

end_block_number
integer
required

Last Rollup block included in the batch.

Required range: x >= 0
number
integer
required

Sequential identifier assigned to this batch by the sequencer.

Required range: x >= 0
start_block_number
integer
required

First Rollup block included in the batch.

Required range: x >= 0
transactions_count
integer
required

Number of transactions in the batch.

Required range: x >= 0