Skip to content

getL1BatchBlockRange

Returns the range of blocks contained within a batch given by batch number.

Usage

example.ts
import { client } from './config'
 
const batchBlockRange = await client.getL1BatchBlockRange({
  number: 1
});

Returns

GetL1BatchBlockRangeReturnType

Array of two elements representing the range of blocks within a batch.

Parameters

number

L1 Batch Number

  • Type number
const batchBlockRange = await client.getL1BatchBlockRange({
  number: 1
});