Skip to main content
Returns information about a block by its hash.

Parameters

string
required
The 32-byte block hash.
boolean
required
If true, returns full transaction objects. If false, returns only transaction hashes.

Returns

object | null
A block object, or null if no block was found. The response shape is identical to eth_getBlockByNumber — see that page for the full field list.

Example