For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_getUncleByBlockNumberAndIndex - Ethereum

eth_getUncleByBlockNumberAndIndex on Ethereum: returns an uncle of a block, by block number and uncle index. Parameters, response and request example for the RPC Fast endpoint.

Returns an uncle of a block, by block number and uncle index.

Blocks produced after the Merge, and blocks of BSC and rollups, have no uncles, so this method is kept for compatibility with older tooling.

Parameters

  1. block (string) — Block number as hex, or a tag: latest, earliest, pending, safe, finalized

  2. index (quantity) — Uncle index

Returns

Uncle header, or null when there is none.

Example

Request

curl https://eth-mainnet.rpcfast.com/?api_key=<API_KEY> \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getUncleByBlockNumberAndIndex","params":["0x192a337","0x0"]}'

Response

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

See Compute Units for the price of this method on Ethereum.

Last updated