ledger_getL2BlockByHash

Returns a complete L2 block by its block hash.

Path Parameters

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
hashstringRequiredformat: "^[0-9a-fA-F]{64}$"

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

Response

Full L2 block object (header and transactions).

headerobject
txslist of strings

Array of transaction data (hex-encoded).