eth_getUncleCountByBlockNumber - Ethereum

eth_getUncleCountByBlockNumber. Returns the number of uncles in a block matching the given block number

eth_getUncleCountByBlockNumber - ethereum [Value: 15CU]
Returns the number of uncles in a block matching the given block 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://eth.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
The integer of a block number encoded in hexadecimal format starting with 0x

Response

200
Returns integer of the number of uncles in this block.

Response params

string
unclesstring
The integer value of the number of uncles in the block encoded as hexadecimal.