web3.eth.getUncle
code:getUncle.js
web3.eth.getUncle(blockHashOrBlockNumber, uncleIndex returnTransactionObjects callback)
与えられた uncle インデックス位置の uncle ブロックを返します。
パラメータ
1. String|Number
ブロック番号またはハッシュ
または web3.eth.defaultBlock で定義されているつぎの文字列
"genesis"
"latest"
"pending"
2. Number
uncle ブロックのインデックス位置
3. Boolean
オプショナル
デフォルト値: false
true をセットした場合、返されるブロックはすべてのトランザクションをオブジェクトとして含みます。
false をセットした場合、トランザクションハッシュのみを含みます。
3. Function
オプショナル
コールバック
第一引数に error オブジェクト、第二引数に result オブジェクトが渡されます。
戻り値
Object を返す Promise : uncle ブロック
戻り値の詳細については web3.eth.getBlock を参照してください。
注意
uncle ブロックは個々のトランザクションを含みません。
サンプル
code: example.js
web3.eth.getUncle(500, 0)
.then(console.log);
// see web3.eth.getBlock
原文
http://web3js.readthedocs.io/en/1.0/web3-eth.html#getuncle
参考
uncleブロックとは?
/playground/uncle ブロック