Skip to main content

eth_getBlockByHash

Ethereum API

Returns information about a block by hash.

Params

(2)

1. Block hash (required)

string
Match pattern:
^0x[0-9a-f]{64}$

2. Hydrated transactions (required)

boolean

Result

(Block information)
(one of)
null

Params

Block hash

Hydrated transactions


Request

await window.ethereum.request({
"method": "eth_getBlockByHash",
"params": [
null,
null
]
});