Skip to main content
Defined in the Ethereum JSON-RPC Specification
Returns the information about a transaction requested by transaction hash.

Parameters

string
required
The hash of a transaction (32 bytes).

Returns

object
A transaction object, or null when no transaction was found.

Error Handling

If the transaction is pending, blockHash, blockNumber, and transactionIndex will be null.