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

Parameters

string
required
Block number in hex, or "latest", "pending", "safe", "finalized", "earliest".
string
required
The transaction index position as a hexadecimal integer.

Returns

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

Example