Eth getUncleByBlockHashAndIndex

Returns information about a uncle of a block by hash and uncle index position.

Request body sample: {"jsonrpc":"2.0","method":"eth_getUncleByBlockHashAndIndex","params":["0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b", "0x0"],"id":1}

POSTeth_getUncleByBlockHashAndIndex
Body
idinteger
jsonrpcstring
methodstring
paramsnullable array of any
Response

OK

Body
idinteger
jsonrpcstring
resultstring
Request
const response = await fetch('eth_getUncleByBlockHashAndIndex', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "id": 0,
  "jsonrpc": "text",
  "result": "text"
}

Last updated