Skip to main content

eth_getUncleCountByBlockNumber

Overview

The 'eth_getUncleCountByBlockNumber' method returns the number of uncles in a block from a block matching the given block number.

Request

curl --request POST \
--url https://ethereum-mainnet-geth-archive.node.coinapi.io \
--header 'accept: application/json'
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KEY' \
{
"id": 1,
"jsonrpc": "2.0",
"params": [
"0xe5cB067E90D5Cd1F8052B83562Ae670bA4A211a8",
"latest"
],
"method": "eth_getUncleCountByBlockNumber"
}'

Request Parameters

  • 'Block Parameter' [ Required ]: A hexadecimal block number, or the string latest, earliest or pending. See the default block parameter.

Response

Block Uncle Count: A hexadecimal equivalent of the integer representing the number of uncles in the block.