Skip to content

eth_getBlockByHash

Returns information about a block identified by its hash.

PositionNameTypeDescription
1blockHashstringThe 32-byte block hash. Required.
2fullTransactionsbooleanWhen true, returns full transaction objects; when false, returns only transaction hashes. Required.
FieldTypeDescription
resultobject | nullA block object, or null if no block was found. See eth_getBlockByNumber for the full field list.
{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": ["0x5c330e55a190f82ea486b61e5b12e27dfb4fb3cecfc5746886ef38ca1281bce8", false],
"id": 1
}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x158a0e9",
"hash": "0x5c330e55a190f82ea486b61e5b12e27dfb4fb3cecfc5746886ef38ca1281bce8",
"parentHash": "0x9edc29b8b0a1e31d28616e40c16132ad0d58faa8bb952595b557526bdb9a960a",
"timestamp": "0x67bf8332",
"gasLimit": "0x3938700",
"gasUsed": "0xab3f",
"transactions": ["0x7ef8f8a0..."]
}
}