eth_getTransactionByBlockHashAndIndex
ブロックハッシュとトランザクションのインデックス位置に基づき、トランザクションの情報を返します。
パラメータ
1. DATA
32バイト
ブロックハッシュ
2. QUANTITY
トランザクションのインデックス位置
code:params.js
params: [
'0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331',
'0x0' // 0
]
戻り値
eth_getTransactionByHash と同じです。
サンプル
code:example.sh
// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getTransactionByBlockHashAndIndex","params":"0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b", "0x0","id":1}'
結果は、eth_getTransactionByHash を参照してください。
参考
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gettransactionbyblockhashandindex
https://infura.io/docs/api/get/eth_getTransactionByBlockHashAndIndex
#JSON_RPC_API
Ethereum JSON RPC API 日本語リファレンス