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

Contents

eth_getUncleCountByBlockNumber RPC Method

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

Parameters:

  1. blockNumber - string - The integer of a block number encoded in hexadecimal format starting with 0x

Returns:

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

Code Examples:

import requests
import json

url = "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/"

payload = json.dumps({
  "method": "eth_getUncleCountByBlockNumber",
  "params": [
    "0xc5043f"
  ],
  "id": 1,
  "jsonrpc": "2.0"
})
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
Ready to get started? Create a free account