EVM
eth_getUncleCountByBlockNumber
Summary: Get number of uncles by block number
This request returns the number of uncles in a block matching the given block number.
Parameters
block oneOf
requiredBlock number or string tag.
Returns
The number of uncles in the block in hexadecimal, or
null
if not found.
eth_getUncleCountByBlockNumberResponse oneOf
Customize request
Parameter
Value
Request
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getUncleCountByBlockNumber",
"params": ["0x4fde9d"],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x0"
}