Skip to content
Alchemy Logo

ledger_getL2BlockByNumber

POST
/{apiKey}

Returns a complete L2 block by its block number.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

integerrequired

L2 block height to fetch.

Responses

200

Full L2 block object (header and transactions).

Was this page helpful?