# Eth\_getTransactionByBlockHashAndIndex

## Get Transaction by Block Hash and Index

> Retrieves the transaction from a block using the block's hash and the transaction's index position within the block.<br>

```json
{"openapi":"3.0.0","info":{"title":"Ethereum JSON-RPC","version":"1.0.0"},"servers":[{"url":"https://zksync.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}}},"paths":{"/":{"post":{"tags":["eth_getTransactionByBlockHashAndIndex"],"summary":"Get Transaction by Block Hash and Index","operationId":"ethGetTransactionByBlockHashAndIndex","description":"Retrieves the transaction from a block using the block's hash and the transaction's index position within the block.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params","id"],"properties":{"jsonrpc":{"type":"string"},"method":{"type":"string"},"params":{"type":"array","description":"Parameters:\n1. blockHash (string): The 32-byte hash of the block.\n2. transactionIndex (string): The transaction index (hex).\n","items":{"type":"string"},"minItems":2,"maxItems":2},"id":{"type":"integer"}}}}}},"responses":{"200":{"description":"A transaction object or `null` if no transaction was found.","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"oneOf":[{"type":"object","properties":{"hash":{"type":"string","description":"Transaction hash."},"nonce":{"type":"string","description":"Number of transactions sent from the sender before this one."},"blockHash":{"type":"string","description":"Hash of the block containing this transaction."},"blockNumber":{"type":"string","description":"Number of the block containing this transaction."},"transactionIndex":{"type":"string","description":"Index of the transaction in the block."},"from":{"type":"string","description":"Sender address."},"to":{"type":"string","description":"Recipient address."},"value":{"type":"string","description":"Value transferred in wei."},"gas":{"type":"string","description":"Amount of gas provided by the sender."},"gasPrice":{"type":"string","description":"Gas price in wei."},"input":{"type":"string","description":"Input data sent with the transaction."},"type":{"type":"string","description":"Transaction type (e.g., \"0x0\" for legacy)."}}},{"type":"string","enum":[null],"description":"Null if no transaction was found."}]}}}}}}}}}}}
```
