🔵 Base
eth_getUncleCountByBlockNumber

⚠️ eth_getUncleCountByBlockNumber - Base Chain

Overview

The eth_getUncleCountByBlockNumber method returns the number of uncle blocks for a given block number. On Base chain, this method will always return "0x0" (zero) for all blocks.

️⚠️

Base is a Layer 2 (L2) rollup that does not have uncle blocks. Uncle blocks are specific to Proof of Work (PoW) blockchains like Ethereum mainnet before The Merge.

Parameters

ParameterDescription
blockNumber or TagBlock number (hex) or "latest", "earliest", "pending"

Returns

uncles - Always "0x0" (zero) on Base chain, as Base blocks never have uncles

Request

POST https://base-mainnet.chainnodes.org/YOUR-API-KEY

Need RPC API keys?

Get 12.5M archival requests for free today.

Example

  • HTTPS POST Request with a JSON RPC call in the body
  • Replace YOUR-API-KEY with the API key from your Chainnodes.org Dashboard
  • You can use a different supported network by replacing base-mainnet
curl https://base-mainnet.chainnodes.org/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getUncleCountByBlockNumber","params":["0x57e450"],"id":1}'

Body

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

JSON-RPC Base API Documentation by CHAINNODES is based on Reth node client. Contact us if you are interested in specific methods that are only available on geth, besu, Nethermind or Erigon