Skip to main content

eth_getUncleCountByBlockHash

Returns the number of uncles in a block from a block matching the given block hash.

Parameters (by position)

Block hash string


Result

Uncle count null or string


Show Option 1 Not Found (null) null

Not Found (null) fields

Uncle count null

Not Found (null)


Show Option 2 Uncle count string

Uncle count fields

Uncle count string

Uncle count

Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


Errors

Error code: 4444

  • code

    4444

  • message

    Pruned history unavailable

Examples

eth_getUncleCountByBlockHash example

Request

{
"params": [
"0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"
]
}

Response

"0x1"