Skip to main content
Defined in the Ethereum JSON-RPC Specification
Returns information about a block by hash.

Parameters

string
required
Hash of a block (32 bytes).
boolean
required
If true, returns the full transaction objects; if false, returns only the hashes of the transactions.

Returns

object
A block object, or null when no block was found.

Error Handling

Setting fullTransactionObjects to true returns complete transaction details, while false returns only transaction hashes for better performance.