eth_getTransactionReceipt - Unichain RPC Method
Get transaction receipt with status and logs on Unichain. Essential for verifying transaction execution for decentralized exchanges, liquidity protocols, and MEV-protected DeFi applications.
Returns the receipt of a transaction by transaction hash on Unichain. Receipt is only available for mined transactions.
Why Unichain? Build on Uniswap's DeFi-optimized Superchain L2 with 250ms sub-blocks and 95% lower costs than Ethereum with 250ms sub-blocks (fastest L2), TEE-secured block building, native Superchain interoperability, and 65% revenue to validators.
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 decentralized exchanges, liquidity protocols, and MEV-protected DeFi applications
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 Unichain. Essential for DeFi developers, liquidity protocol builders, and teams building on the Optimism Superchain tracking transactions on Uniswap's DeFi-optimized Superchain L2 with 250ms sub-blocks and 95% lower costs than Ethereum.
eth_estimateGas
Estimate gas required for transactions on Unichain. Essential for optimizing transaction costs for decentralized exchanges, liquidity protocols, and MEV-protected DeFi applications.