Docs

eth_getTransactionByHash - MegaETH RPC Method

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.

Returns the information about a transaction by transaction hash on MegaETH.

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_getTransactionByHash method is essential for:

  • Transaction tracking - Get details of pending or confirmed transactions
  • Payment verification - Verify transaction parameters
  • Debugging - Analyze transaction data for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications
  • Block explorers - Display transaction information

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format