Returns an uncles at given block and index

web3.eth.getUncle(blockHashOrBlockNumber, uncleIndex [, returnTransactionObjects] [, callback])


  1. The block number or hash. Or the string "earliest", "latest" or "pending" as in the default block parameter.

  2. The index position of the uncle.

  3. (optional, default false) If specified true, the returned block will contain all transactions as objects. By default it is false so, there is no need to explictly specify false. And, if false it will only contains the transaction hashes.

  4. (optional) Optional callback, returns an error object as first parameter and the result as second.


the returned uncle

Last updated