ledger_getL2BlockByNumber

Returns a complete L2 block by its block number.

Path parameters

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
numberintegerRequired
L2 block height to fetch.

Response

Full L2 block object (header and transactions).

headerobject
txslist of strings

Array of transaction data (hex-encoded).