eth_getUncleByBlockHashAndIndex
Retrieve an uncle (ommer) block using its parent block hash and uncle index.
Instructions
Retrieves an uncle (ommer) block by block hash and uncle index position. Uncles are valid blocks that were not included in the main chain but are referenced by main chain blocks.
Args:
blockHash (string): 32-byte hash of the block containing the uncle (e.g., '0xabc123...')
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 block": { "blockHash": "0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "index": "0x0" }
Errors:
InvalidParams: When blockHash or index format is invalid
InternalError: When Infura API is unavailable
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blockHash | Yes | The 32-byte block hash of the block. | |
| index | Yes | The index of the uncle. | |
| 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 |