eth_sendRawTransaction - MegaETH RPC Method
Submit signed transactions to MegaETH. Essential for broadcasting transactions for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications.
Submits a pre-signed transaction for broadcast to 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_sendRawTransaction method is essential for:
- Broadcasting transactions - Submit signed transactions to the network
- Wallet operations - Send native tokens and interact with contracts
- DeFi operations - Execute swaps, provide liquidity for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications
- Batch operations - Submit multiple transactions efficiently
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32000 | Nonce too low | Transaction nonce already used |
| -32000 | Insufficient funds | Account has insufficient balance |
| -32000 | Gas too low | Gas limit insufficient |
| -32000 | Replacement underpriced | Gas price too low for replacement |
Related Methods
eth_estimateGas- Estimate gas requiredeth_gasPrice- Get current gas priceeth_getTransactionReceipt- Get transaction result
eth_accounts
Returns a list of addresses owned by the client on MegaETH. Typically returns an empty array on public RPC endpoints.
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.