eth_getUncleCountByBlockHash

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

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: ethereum-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"eth_getUncleCountByBlockHash","params":["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"]}'
IndexDescription
0* - blockHashThe block hash.

*Required

Response

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