Pre-alphaWork in progress
Skip to content

eth_getUncleByBlockHashAndIndex ​

Returns an uncle header from a block.

Ethereum specification · All supported methods

Parameters ​

Parameters are positional, in the order below.

ParameterTypeRequiredDescription
blockBlock hashYesBlock containing the included uncle.
indexHexadecimal quantityYesZero-based position in the block’s uncle list.

Return value ​

The selected uncle’s header object, or null if the block or uncle position 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_getUncleByBlockHashAndIndex","params":["0x1111111111111111111111111111111111111111111111111111111111111111","0x0"]}'

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

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": null
}

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.

The gateway uses the block’s age when known. If the age is unknown, it starts with a full-history provider. A missing result from a provider without the required history is not accepted as proof that the data does not exist.

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.