# eth\_getTransactionByBlockNumberAndIndex

### Parameters

1. `Quantity` or `tag` - choose 1 of the following options:
   * A hexadecimal block number.
   * `"earliest"` - the earliest/genesis block.
   * `"latest"` - the latest mined block.
   * `"finalized"` - the latest finalized block.
   * `"pending"` - the pending state/transactions.
2. `Index position` of the transaction in hex code.

#### Sample Request

{% code overflow="wrap" %}

```
curl https://lb.nodies.app/v1/<INSERT URL> \
   -H "x-api-key: <API-KEY>" \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{ 
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getTransactionByBlockNumberAndIndex",
  "params": [
    "pending",
    "0x0"
  ]
}'
```

{% endcode %}

#### Sample Response

{% code overflow="wrap" %}

```
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0xe73a36a77b78475a8456e036646748597ac666446b82e8a8d96351d0ab89f773",
    "blockNumber": "0x2f1753a",
    "from": "0x9c8297dfdbd09330cf6aa458639aaec29090d9c5",
    "gas": "0x4518a",
    "gasPrice": "0x4dd4483ed4",
    "hash": "0xb15803beec57e9cf896cd196b7a180ae2982f7974b3e00e51398e466edcde197",
    "input": "0x853ea988000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000001c190000000000000000000000000000000000000000000000000000000000000001000000000000000000000000195081e732594e003d116af28962d1835f09e6b5000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "0xb441c",
    "to": "0xdd3f6c22ecc68007cc9f76da18984995da4b7b82",
    "transactionIndex": "0x0",
    "value": "0x0",
    "type": "0x0",
    "chainId": "0x89",
    "v": "0x136",
    "r": "0xfdfff456bac0d2ebcdd6fc6313323aae1ac3ed16b2668c1bbc2942bf284ee011",
    "s": "0x2b9c22220e8a2c54fe4ce8aa5c2b2da8b132d43b1b257c527ae4912779f4bfa0"
  }
}
```

{% endcode %}
