eth_getTransactionByHash

The eth_getTransactionByHash method returns information about a transaction by its hash on the Optimism network. This is one of the most frequently used methods for tracking transactions, allowing you to retrieve complete transaction details including sender, receiver, value, gas parameters, and input data. It's essential for transaction tracking, confirmation checking, and building transaction history features in wallets and explorers.


Parameters

parameter
type
description
transactionHash
string (required)
Hash of the transaction (32 bytes)
Return Object

The method returns the transaction object or null if not found.

Request Example
Request
Response Example
Response

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?