Appearance
eth_getUncleByBlockHashAndIndex
served · same as reth
Returns an uncle (ommer) block, by block hash. Blocks after the merge have no uncles, so the answer is null.
When to use
Old tools call it. On a node that starts after the merge, it has no use.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_getUncleByBlockHashAndIndex", "params": ["0x88392e71b7c4893c80cadfdeadcbaa91add6a41a1a9e2bda3aef6774053617a5", "0x0"]}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getUncleByBlockHashAndIndex",
"params": [
"0x88392e71b7c4893c80cadfdeadcbaa91add6a41a1a9e2bda3aef6774053617a5",
"0x0"
]
}Response
Live mainnet, block 26193069, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
blockHash | 32-byte hash | yes | The hash of the block. |
index | hex number | yes | The position of the uncle. |
Returns
null. A block below the first block of the node gives the error 4444.
Compared with reth
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
Schema (OpenRPC)
Parameter blockHash: Hash32
json
{
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}Parameter index: Quantity
json
{
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
}Result: Null
json
{
"title": "Null",
"type": "null"
}