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