> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getTransactionByBlockHashAndIndex

Returns information about a transaction by block hash and transaction index position.

This method will use `40` [Compute Units](https://docs.validationcloud.io/nodeapi/about/billing.md).

***

## Reference: [Here](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactionbyblockhashandindex)

## **Parameters**

1. `DATA`, 32 Bytes - hash of a block.
2. `QUANTITY` - integer of the transaction index position.

```javascript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
params: [
  "0x3709faaaca912e00982dd7acf8e6dbddb460aebd59c459741ca9c697acb8f509",
  "0x0"
]
```

## Returns

`Object` - A transaction object, or `null` when no transaction was found:

* `blockHash`: `DATA`, 32 Bytes - hash of the block where this transaction was in. `null` when its pending.
* `blockNumber`: `QUANTITY` - block number where this transaction was in. `null` when its pending.
* `from`: `DATA`, 20 Bytes - address of the sender.
* `gas`: `QUANTITY` - gas provided by the sender.
* `gasPrice`: `QUANTITY` - gas price provided by the sender in Wei.
* `hash`: `DATA`, 32 Bytes - hash of the transaction.
* `input`: `DATA` - the data send along with the transaction.
* `nonce`: `QUANTITY` - the number of transactions made by the sender prior to this one.
* `to`: `DATA`, 20 Bytes - address of the receiver. `null` when its a contract creation transaction.
* `transactionIndex`: `QUANTITY` - integer of the transactions index position in the block. `null` when its pending.
* `value`: `QUANTITY` - value transferred in Wei.
* `v`: `QUANTITY` - ECDSA recovery id
* `r`: `QUANTITY` - ECDSA signature r
* `s`: `QUANTITY` - ECDSA signature s

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0x3709faaaca912e00982dd7acf8e6dbddb460aebd59c459741ca9c697acb8f509",
    "blockNumber": "0x688bcff",
    "blockTimestamp": "0x6b1158d5",
    "from": "0x5efc8fe3947db9079667e62e01dbbafbfe12db10",
    "gas": "0xe93b",
    "gasPrice": "0x600aea7d00",
    "maxFeePerGas": "0x10eaa664900",
    "maxPriorityFeePerGas": "0x8bb2c9700",
    "hash": "0x00e01f3921f23810ec343184f83f3b247551f94bbf764bfa21c42ccf4a7130a1",
    "input": "0x46df2ccb0000000000000000000000000000000000000000000000000ec63e30e0f25f2c000000000000000000000000000000000000000000000001b123b2a5...",
    "nonce": "0x1bf3",
    "to": "0x4a275c4d99bf3747a459362df44d3fcc413d4dd5",
    "transactionIndex": "0x0",
    "value": "0x0",
    "type": "0x2",
    "accessList": [],
    "chainId": "0x19",
    "v": "0x1",
    "r": "0x41bf35d572ea77418e253597096a59783bf0bce5041582bfce5f9607f4dfce7b",
    "s": "0x6af6422fe97367d82a0727f44fb0ea10616fee16ba8d54f4e0118501b22e8c90",
    "yParity": "0x1"
  }
}
```

```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://mainnet.cronos.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getTransactionByBlockHashAndIndex","params":["0x3709faaaca912e00982dd7acf8e6dbddb460aebd59c459741ca9c697acb8f509","0x0"],"id":1}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.