Skip to main content
Returns information about a transaction given a block hash and the transaction’s index position within that block.

Parameters

blockHash
string
required
The 32-byte block hash.
index
string
required
The transaction index position as a hexadecimal integer.

Returns

result
object | null
A transaction object, or null if not found. See eth_getTransactionByHash for the full field list.

Example

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