eth_getUncleByBlockNumberAndIndex - Ethereum
Shows information about the block’s Uncle and its position after you enter the index
How to Use the eth_getUncleByBlockNumberAndIndex Method
Parameters
QUANTITY|TAG - the string "latest", "earliest" or "pending", or an integer block number, check out the default block parameter for details.
QUANTITY - the uncle's index position. params:
[
'0x29c', // 668
'0x0' // 0
]What you receive
The result is similar to an eth_getBlockByHash method. Pay attention that you won’t get transactions of the uncle block by using this method.
Sample
Here is a typical appliance example.
Call
curl https://eth-mainnet.rpcfast.com/?api_key=<key> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getUncleByBlockNumberAndIndex","params":["0x29c", "0x0"],"id":0}'
Outcome
Last updated