Home

Get the number of uncle blocks by block number

POST
https://linea.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the number of uncle blocks for the selected block number; normally zero on Linea.

Body

application/json

JSON-RPC request envelope.

jsonrpcstring2.0required

JSON-RPC protocol version.

methodstringeth_getUncleCountByBlockNumberrequired

JSON-RPC method name.

paramsArray<string>required

An array containing the block number as a hex string.

idintegerrequired

Identifier echoed in the response.

Response

200OK

Number of uncle blocks in the block