eth_getUncleCountByBlockHash

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

Ethereum.org API Reference

Parameters

DATA, 32 Bytes - hash of a block REQUIRED

Returns

QUANTITY - integer of the number of uncles in this block.

Example

Request

curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getUncleCountByBlockHash",
  "params": ["0x14834c13eec4b47be4fb4c8a4190f966af5eb9735b446b7ccd8120b5f5763a59"]
}
'

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x0"
}

Last updated