eth_getUncleCountByBlockHash
Returns the number of uncles in a block from a block matching the given block hash.
Parameters
DATA, 32 Bytes - hash of a blockparams:["0x1d59ff54b1eb26b013ce3cb5fc9dab3705b415a67127a003c3e61eb445bb8df2"]
QUANTITY - integer of the number of uncles in this block.
Example
eth_getUncleCountByBlockNumber
Returns the number of uncles in a block from a block matching the given block number.
Parameters
QUANTITY|TAG- integer of a block number, or the string “latest”, “earliest”, “pending”, “safe” or “finalized”, see the default block parameterparams:["0xe8", // 232]
QUANTITY - integer of the number of uncles in this block.
Example
eth_getUncleByBlockHashAndIndex
Returns information about a uncle of a block by hash and uncle index position.
Parameters
DATA, 32 Bytes - The hash of a block.QUANTITY- The uncle’s index position.params:["0x1d59ff54b1eb26b013ce3cb5fc9dab3705b415a67127a003c3e61eb445bb8df2","0x0", // 0]
eth_getBlockByHash.
Example
eth_getBlockByHash.
Note: An uncle doesn’t contain individual transactions.
eth_getUncleByBlockNumberAndIndex
Returns information about a uncle of a block by number and uncle index position.
Parameters
QUANTITY|TAG- a block number, or the string “earliest”, “latest”, “pending”, “safe”, “finalized”, as in the default block parameter.QUANTITY- the uncle’s index position.params:["0x29c", // 668 "0x0", // 0]
eth_getBlockByHash.
Note: An uncle doesn’t contain individual transactions.
Example
eth_getBlockByHash.