eth_getTransactionByBlockNumberAndIndex
Retrieves a specific transaction from a block by its number and index position
Request
Examples
curl https://rpc.xone.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"eth_getTransactionByBlockNumberAndIndex","params":["0xc5043f", "0x0"],"id":1,"jsonrpc":"2.0"}'
Response
200 OK
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
}Request params
| Name | Type | Description |
|---|---|---|
| id | integer | Request identifier |
| jsonrpc | string | JSON-RPC version |
| method | string | API method name |
| Parameters | array of strings | |
| blockNumber | string | (optional) Block number as an integer, or string |
| index | string | The index position of the transaction within the block, specified as an integer or a hexadecimal string. |
Response
200
Detailed transaction object if found, or null if no transaction is found at the given index.| Name | Type | Description |
|---|---|---|
| Parameters | object | |
| id | integer | |
| jsonrpc | string | |
| result | array_of_objects |