> ## Documentation Index
> Fetch the complete documentation index at: https://daehan-base.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getTransactionByBlockNumberAndIndex

> Returns a transaction by block number and index position.

Returns information about a transaction given a block number and the transaction's index position within that block.

## Parameters

<ParamField body="block" type="string" required>
  Block number in hex, or `"latest"`, `"pending"`, `"safe"`, `"finalized"`, `"earliest"`.
</ParamField>

<ParamField body="index" type="string" required>
  The transaction index position as a hexadecimal integer.
</ParamField>

## Returns

<ResponseField name="result" type="object | null">
  A transaction object, or `null` if not found. See [`eth_getTransactionByHash`](/base-chain/api-reference/ethereum-json-rpc-api/eth_getTransactionByHash) for the full field list.
</ResponseField>

## Example

<CodeGroup>
  ```json Request theme={null}
  {
    "jsonrpc": "2.0",
    "method": "eth_getTransactionByBlockNumberAndIndex",
    "params": ["latest", "0x0"],
    "id": 1
  }
  ```

  ```json Response theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "hash": "0x7ef8f8a0...",
      "blockNumber": "0x158a0e9",
      "transactionIndex": "0x0",
      "type": "0x7e"
    }
  }
  ```
</CodeGroup>
