Skip to content
Alchemy Logo

ledger_getL2BlockByHash

POST
/{apiKey}

Returns a complete L2 block by its block hash.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringformat: "^[0-9a-fA-F]{64}$"required

32-byte L2 block hash (hex, without 0x).

Responses

200

Full L2 block object (header and transactions).

Was this page helpful?