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.
Parameters
block(string) — Block number as hex, or a tag:latest,earliest,pending,safe,finalizedindex(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