Marketplace has launched, further enabling blockchain developers! Learn more


eth_getUncleCountByBlockNumber RPC method

The eth_getUncleCountByBlockNumber EVM method is only supported on the Avalanche C-Chain.


  1. Number - Integer of a block number in hexadecimal format starting with 0x.


  1. Uncles - Integer value of the number of uncles in the block encoded as a hexadecimal.

Code Examples:

To use the eth_getUncleCountByBlockNumber EVM method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

const ethers = require("ethers");
(async () => {
  const provider = new ethers.providers.JsonRpcProvider("");
  const uncleCount = await provider.send("eth_getUncleCountByBlockNumber", [
Ready to get started? Create a free account