Returns information about a transaction by block number and transaction index position.
Parameters
Index | Data Type | Description |
---|---|---|
1 | QUANTITY|TAG | a block number, or the string "earliest", "latest", |
2 | QUANTITY | the transaction index position |
Returns
object - a transaction object or null when no transaction was found. See eth_getTransactionByBlockHashAndIndex
Example
curl -X POST '47.95.206.44:50545/jsonrpc' --data '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": ["0xfb82f0", "0x0"],
"id": 64
}'
Result
{"jsonrpc":"2.0","id":64,"result":null}