Pre-alphaWork in progress
Skip to content

eth_getUncleCountByBlockNumber ​

Returns the number of uncles included in a block.

Ethereum specification · All supported methods

Parameters ​

Parameters are positional, in the order below.

ParameterTypeRequiredDescription
blockBlock number or tagYesBlock containing the included uncle.

Return value ​

The count as a hexadecimal quantity, or null if the block is not found.

Example ​

Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.

sh
curl -X POST "<gateway-url>/<service-url>" \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_getUncleCountByBlockNumber","params":["latest"]}'

Illustrative response; values depend on the selected network and request:

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0"
}

Direct behavior ​

Requests for older chain data are automatically routed to providers with full chain history. This covers blocks, transactions, receipts, and logs independently of historical account state.

Requests using latest follow Direct’s reference-block rules. The selected reference is preserved during recovery; separate requests can see a newer reference.

For providers ​

Support the required recent chain-history service. Advertise full chain history only when all included method families and lookup indexes work back to genesis.

Checks use known blocks containing uncles as well as empty uncle lists. Pruned data cannot be returned as a legitimate zero or null result.

See provider qualification for checks and continued eligibility.

Unstoppable Infrastructure.