MEGAETHDOCS
GitHubGet started →
API

realtime_sendRawTransaction

Sends a signed raw transaction and returns receipt-shaped result directly.

Behavior

  • Expects signed tx hex payload (0x...).
  • Designed to remove explicit receipt polling loops.
  • Request timeout window is approximately 10 seconds.

Never expose private keys in docs/browser contexts. Sign transactions in wallet/client environments only.

Example Response Shape

POSThttps://rpc.megaeth.commainnet
Request Preview
{
  "jsonrpc": "2.0",
  "method": "realtime_sendRawTransaction",
  "params": [],
  "id": 1
}
example response shape · no browser signing
Requires signed transaction. Never use private keys in browser docs playgrounds.
200 OKResponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "blockNumber": "0x10",
    "contractAddress": null,
    "cumulativeGasUsed": "0x11dde",
    "effectiveGasPrice": "0x23ebdf",
    "from": "0xf39f...2266",
    "gasUsed": "0xea60",
    "logs": [],
    "status": "0x1",
    "to": "0xa7b8...941a"
  }
}

Was this page helpful?

Edit on GitHub