# Eth\_getTransactionByBlockNumberAndIndex

## Get Transaction by Block Number and Index

> Returns the information about a transaction using the block number and the transaction index within the block.<br>

```json
{"openapi":"3.0.0","info":{"title":"Ethereum JSON-RPC","version":"1.0.0"},"servers":[{"url":"https://arbitrum.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}}},"paths":{"/":{"post":{"tags":["eth_getTransactionByBlockNumberAndIndex"],"summary":"Get Transaction by Block Number and Index","operationId":"ethGetTransactionByBlockNumberAndIndex","description":"Returns the information about a transaction using the block number and the transaction index 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. Block number in hex format (e.g., \"0x5daf3b\")\n2. Transaction index in the block (e.g., \"0x0\")\n","items":{"type":"string"},"minItems":2,"maxItems":2},"id":{"type":"integer"}}}}}},"responses":{"200":{"description":"A transaction object, or `null` if not found.","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"oneOf":[{"type":"object","properties":{"hash":{"type":"string","description":"Hash of the transaction."},"nonce":{"type":"string","description":"Number of transactions sent by the sender."},"blockHash":{"type":"string","description":"Hash of the block this transaction was included in."},"blockNumber":{"type":"string","description":"Number of the block this transaction was included in."},"transactionIndex":{"type":"string","description":"Index of this transaction in the block."},"from":{"type":"string","description":"Address the transaction is sent from."},"to":{"type":"string","description":"Address the transaction is directed to."},"value":{"type":"string","description":"Value transferred in wei."},"gas":{"type":"string","description":"Gas provided by the sender."},"gasPrice":{"type":"string","description":"Gas price provided by the sender in wei."},"input":{"type":"string","description":"Data sent along with the transaction."},"type":{"type":"string","description":"Transaction type (e.g., \"0x0\" for legacy)."}}},{"type":"string","enum":[null],"description":"Null if no transaction found."}]}}}}}}}}}}}
```
