eth_getUncleCountByBlockNumber - Base

eth_getUncleCountByBlockNumber. Retrieve the number of uncles in a block by its number

eth_getUncleCountByBlockNumber - base [Value: 15CU]
Retrieves the number of uncle blocks for a specific block identified by its number
Use cases

Use cases

  • Count uncle blocks for specific block number
  • Verify uncle block count by block number
  • Analyze uncle blocks in a specific block
Constraints

Constraints

  • Requires valid block number input
  • Node synchronization with blockchain necessary
  • Accurate block number essential for results
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://base.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getUncleCountByBlockNumber","params":["0xc5043f"],"id":1,"jsonrpc":"2.0"}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray of strings
array of strings
blockNumberstring
(optional) Block number as an integer, or string
  • latest [default] - The most recent block in the blockchain (default).
  • earliest - The first block, also known as the genesis block.
  • pending - Transactions that have been broadcast but not yet included in a block.

Response

200
The number of uncle blocks associated with the specified block

Response params

string
unclesstring