Skip to main content

eth_getUncleByBlockHashAndIndex

Parameters​

  • QUANTITY|TAG - a block number, or the string "earliest", "latest" or "pending", as in the

    default block parameter.

  • QUANTITY - the uncle's index position.

params: [
"0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b",
"0x0", // 0
];

Returns​

See eth_getBlockByHash

Example​

Request

curl https://eth-mainnet.blastapi.io/<project-id> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getUncleByBlockHashAndIndex","params":["0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b", "0x0"],"id":0}'

Result

Result see eth_getBlockByHash

warning

Note: An uncle doesn’t contain individual transactions.