Skip to main content

eth_getUncleCountByBlockNumber

Returns the number of transactions in a block matching the given block number.

Params

(1)

1. Block (required)

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

Result

(Uncle count)
(one of)
null

Example

Request

await window.ethereum.request({
"method": "eth_getUncleCountByBlockNumber",
"params": [
"0xe8"
]
});

Result

"0x1"

Params

Block


Request

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