Skip to content

getBlockDetails

Returns additional zkSync-specific information about the L2 block.

Usage

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

Returns

BaseBlockDetails

Structure that represent zkSync-specific information about L2 block.

Parameters

number

Block Number

  • Type number
const blockDetails = await client.getBlockDetails({
  number: 1
});