Skip to main content

eth_getUncleCountByBlockNumber

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

Params

(1)

1. blocknumber (required)

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

Result

(eth_getUncleCountByBlockNumber_result)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$

Endpoint

Params

blocknumber


Request

curl -X POST --data \
'{
"method": "eth_getUncleCountByBlockNumber",
"params": [
null
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://evmtestnet.confluxrpc.com