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

Parameters

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

Returns

result
object | null
A block object, or null if no block was found. See eth_getBlockByNumber for the full field list.

Example

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