eth_getUncleByBlockNumberAndIndex
Retrieve an uncle (ommer) block by block number and uncle index position to access valid blocks not included in the main chain.
Instructions
Retrieves an uncle (ommer) block by block number and uncle index position. Uncles are valid blocks that were not included in the main chain but are referenced by main chain blocks.
Args:
blockNumber (string): Block number as hex (e.g., '0x10d4f') or tag ('latest', 'earliest', 'pending')
index (string): Zero-based uncle index position as hex (e.g., '0x0' for first uncle)
network (string, optional): Ethereum network to query, defaults to 'mainnet'
Returns:
Uncle block object with hash, parentHash, sha3Uncles, miner, stateRoot, number, gasLimit, gasUsed, timestamp, difficulty, nonce; null if not found
Examples:
"Get first uncle in specific block": { "blockNumber": "0x29c", "index": "0x0" }
"Get uncle from latest block": { "blockNumber": "latest", "index": "0x0" }
Errors:
InvalidParams: When blockNumber or index format is invalid
InternalError: When Infura API is unavailable
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blockNumber | Yes | The block number in hexadecimal format. | |
| index | Yes | The index of the uncle in hexadecimal format. | |
| network | No | The Ethereum network to query, e.g., 'mainnet' or 'sepolia'. | mainnet |
| response_format | No | Output format: 'json' for structured data, 'markdown' for human-readable. | json |