⚠️ eth_getUncleCountByBlockHash - Base Chain
Overview
The eth_getUncleCountByBlockHash
method returns the number of uncle blocks for a given block hash. 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
Parameter | Description |
---|---|
blockHash | The 32-byte hash of the block to check for uncles |
Returns
uncles
- Always "0x0" (zero) on Base chain, as Base blocks never have uncles
Need RPC API keys?
Get 12.5M archival requests for free today.
Request
POST https://base-mainnet.chainnodes.org/YOUR-API-KEY
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_getUncleCountByBlockHash","params":["0x54751c3cb4f7c95b249ab5ed702a708a6782cc937b1d399f25be4b40d9e0f5d4"],"id":1}'
Body
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}