Skip to main content
Returns transaction information for a given block hash and transaction index position.

Parameters

blockHash
string
required
The 32-byte hash of the block.
transactionIndex
string
required
The transaction’s index position in the block as a hexadecimal integer (e.g., "0x0" for the first transaction).

Returns

result
object | null
A transaction object with the same fields as eth_getTransactionByHash, or null if no transaction was found at that position.

Example

{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionByBlockHashAndIndex",
  "params": [
    "0x3a4e8c5d7f2b1a6e9d0c4f8b3e7a2d5c8f1b4e7a0d3c6f9b2e5a8d1c4f7b0e3",
    "0x0"
  ],
  "id": 1
}