We're now supporting Polygon zkEVM!
Learn more here.

Contents

eth_getUncleCountByBlockHash RPC Method

The API credit value for this method is 2 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. hash - string - The hash of the block to get uncles for

Returns:

  1. uncles - The integer value of the number of uncles in the block encoded as hexadecimal

Code Examples:

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "method": "eth_getUncleCountByBlockHash",
  "params": [
    "0x829df9bb801fc0494abf2f443423a49ffa32964554db71b098d332d87b70a48b"
  ],
  "id": 1,
  "jsonrpc": "2.0"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
Ready to get started? Create a free account