eth_getTransactionReceipt - MegaETH RPC Method
Get transaction receipt with status and logs on MegaETH. Essential for verifying transaction execution for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications.
Returns the receipt of a transaction by transaction hash on MegaETH. Receipt is only available for mined transactions.
Why MegaETH? Build on the first real-time blockchain with sub-millisecond latency and 100,000+ TPS with sub-millisecond transaction streaming with 100,000+ sustained TPS and full EVM compatibility.
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 high-frequency trading, real-time gaming, instant payments, and latency-sensitive 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 MegaETH. Essential for high-frequency DeFi developers, gaming studios, and teams building real-time applications tracking transactions on the first real-time blockchain with sub-millisecond latency and 100,000+ TPS.
eth_estimateGas
Estimate gas required for transactions on MegaETH. Essential for optimizing transaction costs for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications.