Docs

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 CodeMessageDescription
-32602Invalid paramsInvalid transaction hash

Note: Returns null if transaction is not yet mined.