Docs

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

Bash
curl -X POST https://api-megaeth-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_sendRawTransaction",
    "params": ["0xf86c808504a817c80082520894..."],
    "id": 1
  }'

Error Handling

Error CodeMessageDescription
-32000Nonce too lowTransaction nonce already used
-32000Insufficient fundsAccount has insufficient balance
-32000Gas too lowGas limit insufficient
-32000Replacement underpricedGas price too low for replacement