eth_getTransactionReceipt - Optimism RPC Method
Get transaction receipt with status and logs on Optimism. Essential for verifying transaction execution for cross-chain DeFi, Superchain-interoperable dApps, and public goods funding recipients.
Returns the receipt of a transaction by transaction hash on Optimism. Receipt is only available for mined transactions.
Why Optimism? Build on the heart of the Superchain powering 60%+ of Ethereum L2 transactions with $6B+ TVL with OP Stack modularity, Superchain interoperability, 17M+ daily transactions across 33 chains, and 20% of tokens for public goods.
Use Cases
The eth_getTransactionReceipt method is essential for:
- Transaction confirmation - Verify transaction was mined successfully
- Gas analysis - Check actual gas used vs estimated
- Event parsing - Read emitted events from logs
- Status verification - Confirm success/failure for cross-chain DeFi, Superchain-interoperable dApps, and public goods funding recipients
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid transaction hash |
Note: Returns null if transaction is not yet mined.
Related Methods
eth_getTransactionByHash- Get transaction detailseth_getLogs- Query logs by filter
eth_getTransactionByHash
Retrieve transaction details by hash on Optimism. Essential for L2 builders, DeFi developers, and teams launching Superchain-compatible apps tracking transactions on the heart of the Superchain powering 60%+ of Ethereum L2 transactions with $6B+ TVL.
eth_estimateGas
Estimate gas required for transactions on Optimism. Essential for optimizing transaction costs for cross-chain DeFi, Superchain-interoperable dApps, and public goods funding recipients.