---
updatedAt: 2025-09-18T22:19:16.000Z
agentTools:
  projectIndex: https://docs.nodereal.io/llms.txt
---

# eth_getTransactionByBlockHashAndIndex

Returns information about a transaction by block hash and transaction index position.

> 📘 Supported on both BNB Smart Chain and opBNB Chain.

The format of a BNB Smart Chain endpoint:\
`https://bsc-mainnet.nodereal.io/v1/{{apiKey}}`

`https://bsc-testnet.nodereal.io/v1/{{apiKey}}`

The format of an opBNB Chain endpoint:

`https://opbnb-mainnet.nodereal.io/v1/{{apiKey}}`

`https://opbnb-testnet.nodereal.io/v1/{{apiKey}}`

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "eth_getTransactionByBlockHashAndIndex",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://bsc-mainnet.nodereal.io/v1"
    }
  ],
  "paths": {
    "/{apiKey}": {
      "post": {
        "summary": "eth_getTransactionByBlockHashAndIndex",
        "description": "Returns information about a transaction by block hash and transaction index position.",
        "tags": [],
        "parameters": [
          {
            "name": "apiKey",
            "in": "path",
            "schema": {
              "type": "string",
              "default": "64a9df0874fb4a93b9d0a3849de012d3"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "default": 1
                      },
                      "jsonrpc": {
                        "type": "string",
                        "default": "2.0"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "params": {
                        "type": "array",
                        "description": "1. String - 32 Bytes - Hash of a block \n2. String - Integer of the transaction index position (in hex).\n",
                        "minItems": 2,
                        "maxItems": 2,
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "method": {
                        "type": "string",
                        "default": "eth_getTransactionByBlockHashAndIndex",
                        "enum": [
                          "eth_getTransactionByBlockHashAndIndex"
                        ]
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer"
                        },
                        "jsonrpc": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "result": {
                          "allOf": [
                            {
                              "type": "object",
                              "properties": {
                                "nonce": {
                                  "type": "string",
                                  "description": "8 Bytes - hash of the generated proof-of-work. null when its pending block."
                                },
                                "hash": {
                                  "type": "string",
                                  "description": "32 Bytes - hash of the block. null when its pending block."
                                }
                              }
                            },
                            {
                              "type": "object",
                              "description": "A block object with the following fields, or null when no block was found.",
                              "properties": {
                                "number": {
                                  "type": "string",
                                  "description": "the block number. null when its pending block."
                                },
                                "parentHash": {
                                  "type": "string",
                                  "description": "32 Bytes - hash of the parent block."
                                },
                                "sha3Uncles": {
                                  "type": "string",
                                  "description": "32 Bytes - SHA3 of the uncles data in the block."
                                },
                                "logsBloom": {
                                  "type": "string",
                                  "description": "256 Bytes - the bloom filter for the logs of the block. null when its pending block."
                                },
                                "transactionsRoot": {
                                  "type": "string",
                                  "description": "32 Bytes - the root of the transaction trie of the block."
                                },
                                "stateRoot": {
                                  "type": "string",
                                  "description": "32 Bytes - the root of the final state trie of the block."
                                },
                                "receiptsRoot": {
                                  "type": "string",
                                  "description": "32 Bytes - the root of the receipts trie of the block."
                                },
                                "miner": {
                                  "type": "string",
                                  "description": "20 Bytes - the address of the beneficiary to whom the mining rewards were given."
                                },
                                "difficulty": {
                                  "type": "string",
                                  "description": "integer of the difficulty for this block."
                                },
                                "totalDifficulty": {
                                  "type": "string",
                                  "description": "integer of the total difficulty of the chain until this block."
                                },
                                "extraData": {
                                  "type": "string",
                                  "description": "the \"extra data\" field of this block."
                                },
                                "size": {
                                  "type": "string",
                                  "description": "integer the size of this block in bytes."
                                },
                                "gasLimit": {
                                  "type": "string",
                                  "description": "the maximum gas allowed in this block."
                                },
                                "gasUsed": {
                                  "type": "string",
                                  "description": "the total used gas by all transactions in this block."
                                },
                                "timestamp": {
                                  "type": "string",
                                  "description": "the unix timestamp for when the block was collated."
                                },
                                "transactions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter."
                                },
                                "uncles": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Array of uncle hashes."
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "eth-getTransactionByBlockHashAndIndex"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```