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

Parameters

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

Returns

result
object | null
A block object with the same fields as eth_getBlockByNumber, or null if no block was found.

Example

{
  "jsonrpc": "2.0",
  "method": "eth_getBlockByHash",
  "params": [
    "0x3a4e8c5d7f2b1a6e9d0c4f8b3e7a2d5c8f1b4e7a0d3c6f9b2e5a8d1c4f7b0e3",
    false
  ],
  "id": 1
}