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
});