> ## 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.

# jsonrpc eth_getTransactionByBlockNumberAndIndex | TRON

> TRON API method that returns information about a transaction by block number and transaction index using Ethereum-compatible JSON-RPC format.

TRON API method that returns information about a transaction by block number and transaction index using Ethereum-compatible JSON-RPC format. This method provides Ethereum tooling compatibility for retrieving specific transactions from blocks on TRON.

## Parameters

* `jsonrpc` — the JSON-RPC protocol version (always "2.0")
* `method` — the method name (always "eth\_getTransactionByBlockNumberAndIndex")
* `params` — array containing method parameters
  * `blockNumber` — the block number as a hexadecimal string or block tag ("latest", "earliest", "pending")
  * `transactionIndex` — the transaction index position in the block as a hexadecimal string
* `id` — request identifier (number or string)

## Response

* `jsonrpc` — the JSON-RPC protocol version ("2.0")
* `id` — the request identifier that matches the request
* `result` — transaction object with Ethereum-compatible fields or null if not found

## Use case

The `jsonrpc eth_getTransactionByBlockNumberAndIndex` method is used for:

* Retrieving specific transactions from blocks by number using Ethereum-compatible tools
* Building transaction indexing and monitoring systems for TRON
* Supporting Ethereum-based analytics and block explorer applications on TRON
* Enabling efficient transaction lookups by block number and position


## OpenAPI

````yaml openapi/tron_node_api/jsonrpc_eth_getTransactionByBlockNumberAndIndex.json POST /95e61622bf6a8af293978377718e3b77/jsonrpc
openapi: 3.0.0
info:
  title: jsonrpc eth_getTransactionByBlockNumberAndIndex TRON API
  version: 1.0.0
  description: Get transaction by block number and index using Ethereum-compatible JSON-RPC
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/jsonrpc:
    post:
      tags:
        - JSON-RPC Compatibility
      summary: eth_getTransactionByBlockNumberAndIndex
      operationId: ethGetTransactionByBlockNumberAndIndex
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - params
                - id
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  default: '2.0'
                method:
                  type: string
                  enum:
                    - eth_getTransactionByBlockNumberAndIndex
                  default: eth_getTransactionByBlockNumberAndIndex
                params:
                  type: array
                  items:
                    type: string
                  default:
                    - '0xfb82f0'
                    - '0x0'
                  minItems: 2
                  maxItems: 2
                id:
                  oneOf:
                    - type: string
                    - type: integer
                  default: 64
      responses:
        '200':
          description: Transaction object or null if not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  id:
                    oneOf:
                      - type: string
                      - type: integer
                    example: 64
                  result:
                    type: object
                    nullable: true
                    description: Transaction object with Ethereum-compatible fields or null

````