Skip to content

getL1BatchNumber

Returns the latest L1 batch number.

Usage

example.ts
import { client } from './config'
 
const latestNumber = await client.getL1BatchNumber();

Returns

Hex

Latest L1 batch number.