eth_getTransactionReceipt

The eth_getTransactionReceipt method returns the receipt of a transaction by transaction hash on the Optimism network. The receipt contains post-execution information including whether the transaction succeeded or failed, gas used, logs emitted by smart contracts, and the contract address for contract deployments. This method is crucial for confirming transaction execution, parsing event logs, and determining transaction outcomes.


Parameters

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

The method returns the transaction receipt object or null if not yet mined.

Request Example
Request
Response Example
Response

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