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 Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid transaction hash format |
Related Methods
eth_getTransactionReceipt- Get transaction receipteth_sendRawTransaction- Send transaction
eth_sendRawTransaction
Submit signed transactions to MegaETH. Essential for broadcasting transactions for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications.
eth_getTransactionReceipt
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.