eth_getUncleByBlockNumberAndIndex
ブロック番号と Uncle ブロックのインデックス位置に基づき、Uncle ブロック についての情報を返します。
パラメータ
1. QUANTITY|TAG
ブロック番号の整数値
または、以下のいずれかの文字列
"latest"
"earliest"
"pending"
2. QUANTITY
トランザクションのインデックス位置
code:params.js
params: [
'0x29c', // 668
'0x0' // 0
]
戻り値
eth_getTransactionByHash と同じです。
注意
Uncle ブロックは個々のトランザクションを含みません。
サンプル
code:example.sh
// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getUncleByBlockNumberAndIndex","params":"0x29c", "0x0","id":1}'
結果については、eth_getBlockByHash を参照してください。
参考
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getunclebyblocknumberandindex
https://infura.io/docs/api/get/eth_getUncleByBlockNumberAndIndex
#JSON_RPC_API
Ethereum JSON RPC API 日本語リファレンス