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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.chainstack.com/feedback

```json
{
  "path": "/reference/base-gettransactionbyblockhashandindex",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# eth_getTransactionByBlockHashAndIndex | Base

Base API method `eth_getTransactionByBlockHashAndIndex` retrieves information about a transaction by specifying the block hash and the transaction's index position within the block. This method is useful for fetching specific transactions when the block hash and index are known.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `blockHash` — the hash of the block.
* `transactionIndex` — the index position of the transaction in the block, specified as a hexadecimal. The example uses `"0x1"`.

## Response

* `result` — an object containing details about the transaction, including the block hash, block number, from address, gas used, gas price, hash, input data, nonce, to address, transaction index, value transferred, and the signature components (v, r, s).

## Use case

The `eth_getTransactionByBlockHashAndIndex` method is essential for:

* Applications that need to retrieve specific transactions from a known block for analysis or display.
* Services that monitor blocks and transactions for security, compliance, or other operational reasons.
* Tools that reconstruct transaction sequences within blocks for auditing or forensic purposes.


## OpenAPI

````yaml /openapi/base_node_api/eth_getTransactionByBlockHashAndIndex.json POST /2fc1de7f08c0465f6a28e3c355e0cb14
openapi: 3.0.0
info:
  title: eth_getTransactionByBlockHashAndIndex example
  version: 1.0.0
  description: >-
    This is an API example for eth_getTransactionByBlockHashAndIndex, a method
    to get a transaction by block  hash and transaction index position.
servers:
  - url: https://base-mainnet.core.chainstack.com
security: []
paths:
  /2fc1de7f08c0465f6a28e3c355e0cb14:
    post:
      tags:
        - Ethereum Operations
      summary: eth_getTransactionByBlockHashAndIndex
      operationId: getTransactionByBlockHashAndIndex
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - id
                - params
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getTransactionByBlockHashAndIndex
                id:
                  type: integer
                  default: 1
                params:
                  type: array
                  default:
                    - >-
                      0x07fcc7d5f86839e12afa756e979de05812b5341f936b850c9409aa0938819b30
                    - '0x1'
                  items:
                    type: string
      responses:
        '200':
          description: Transaction information for the given block hash and index
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      blockHash:
                        type: string
                      blockNumber:
                        type: string
                      from:
                        type: string
                      gas:
                        type: string
                      gasPrice:
                        type: string
                      hash:
                        type: string
                      input:
                        type: string
                      nonce:
                        type: string
                      to:
                        type: string
                      transactionIndex:
                        type: string
                      value:
                        type: string
                      v:
                        type: string
                      r:
                        type: string
                      s:
                        type: string

````