Tempo Mainnet is now live on Chainstack! Get Tempo RPC endpoint for free!    Learn more
  • Pricing
  • Docs

How to get a MegaETH RPC endpoint

Created Mar 11, 2026 Updated Mar 11, 2026

TL;DR

MegaETH RPC endpoints power real-time applications on MegaETH’s high-throughput L2. With ~10 ms mini-blocks and the Realtime API, infrastructure must handle low-latency queries, rapid event streams, and reliable transaction delivery.

Source: Uptime on MegaETH

A MegaETH RPC endpoint connects your application to MegaETH’s real-time sequencer. While it uses the standard Ethereum JSON-RPC interface, MegaETH’s ~10 ms blocks and Realtime API require infrastructure optimized for high-frequency queries and streaming workloads.

What is a MegaETH RPC endpoint

A MegaETH RPC endpoint is your application’s gateway to the MegaETH network. It uses the same JSON-RPC interface as Ethereum (eth_call, eth_getBalance, eth_sendRawTransaction) but connects to MegaETH’s real-time sequencer — an Ethereum Layer 2 capable of processing up to 100,000 transactions per second with 10ms mini-block intervals. That speed advantage places unique demands on RPC infrastructure that standard Ethereum tooling was never built to handle.

Every user-facing blockchain action in your product depends on it:

  • Reading wallet balances and contract state
  • Estimating gas with MegaETH’s custom gas model
  • Broadcasting signed transactions via the Realtime API
  • Monitoring contract events in real time using eth_getLogs and filter subscriptions

That is why endpoint quality directly determines user experience. At 10ms block intervals, a single slow RPC query costs you hundreds of missed mini-blocks. If your endpoint is unstable, real-time applications fail in ways that are invisible on slower chains but immediately apparent on MegaETH.

How MegaETH RPC differs from Ethereum RPC

MegaETH runs on top of Ethereum as an L2 rollup, which means the JSON-RPC interface is familiar — but the operating environment is fundamentally different. The table below maps the key distinctions that affect provider selection.

WhatMegaETHEthereum
Block modelMini blocks every 10ms + EVM blocks every 1s~12 second blocks
ThroughputUp to 100,000 TPS~15–30 TPS (L1)
Gas tokenETH (native, bridged from L1)ETH
ArchitectureEthereum L2 rollup (OP Stack based)Ethereum L1
FinalityL2 soft finality in ~1s; L1 settlement via Ethereum~12 minutes (probabilistic)
debug/traceUnavailable on public endpointsGenerally available
Realtime APIYes — realtime_sendRawTransaction + streamingNo
Gas estimationUse on-chain estimation; local sim may failLocal simulation reliable

This is exactly why provider selection for MegaETH must account for Realtime API support, low-latency streaming, and correct gas estimation behavior — not just raw RPS limits.

MegaETH RPC endpoint options

Choosing the right endpoint is a reliability and latency decision. You are balancing convenience, cost, and operational risk at a speed that magnifies every infrastructure gap.

Public vs Private MegaETH RPC endpoints

Official public MegaETH endpoints:

  • Mainnet: https://mainnet.megaeth.com/rpc
  • Testnet: https://carrot.megaeth.com/rpc
  • Rate limits: Dynamic CU + bandwidth limits per user (see MegaETH RPC docs)
  • Critical limitation: debug/trace methods are unavailable on all public endpoints

📖 The full RPC method availability list — including restrictions on gas limits and block ranges — is documented in the official MegaETH RPC docs at docs.megaeth.com/rpc.

FeaturePublic RPCPrivate RPC (managed provider)
AccessFree and openAuthenticated, restricted access
ResourcesShared infrastructureDedicated or isolated resources
PerformanceVariable, rate-limitedStable, high throughput
debug/traceUnavailableProvider-dependent — verify before committing
Realtime APIAvailable at public endpointProvider-dependent
WebSocket stabilityLimited guaranteesReliable long-lived connections
Best use caseDevelopment and testingProduction workloads

Public RPC endpoints are suitable for testing and prototyping. For production workloads — especially high-frequency trading, DeFi bots, or real-time analytics — use a managed infrastructure provider with predictable rate limits.

Full node vs Archive MegaETH node

Your data requirements should drive this decision. MegaETH’s 10ms block cadence produces significantly more state than slower chains, which affects archive storage costs and query latency.

Full node accessArchive node access
Current state queriesHistorical analytics and backfills
Standard wallet and dApp interactionsExplorer-grade products
Transaction submission and broadcastingDeep event backfills via eth_getLogs with wide block ranges
Real-time event monitoringCompliance, reporting, and audit
Long-range debugging (where trace methods are available)

If your product depends on historical state queries or event backfills spanning more than recent blocks, validate archive availability explicitly before launch. MegaETH’s block density means archive nodes carry more data than equivalent Ethereum archives.

HTTPS vs WebSockets

Transport choice has a larger impact on MegaETH than on slower chains because block frequency amplifies the cost of every round trip.

FeatureHTTPSWebSocket
ModelRequest/responsePersistent connection
ComplexitySimple to operateRequires reconnect and heartbeat logic
Best forStandard reads and writesReal-time streams and subscriptions
Latency profilePer-request overheadLower for high-frequency updates
Missed event riskPoll-based, predictableRequires backfill logic on reconnect

In practice, most teams use HTTPS for standard contract reads and transaction submission, then layer in WebSocket subscriptions for real-time event delivery. On MegaETH specifically, test WebSocket stability under burst traffic early — mini-block rates generate subscription pressure that is orders of magnitude higher than Ethereum mainnet.

How to get a private MegaETH RPC endpoint with Chainstack

megaeth endpoint
  1. Log in to the Chainstack console (or create an account)
  2. Create a new project
  3. Select MegaETH as your blockchain protocol
  4. Choose network: MegaETH Mainnet (MegaETH Testnet only for Dedicated Nodes)
  5. Deploy the node
  6. Open Access/Credentials and copy your HTTPS and WebSocket endpoints
  7. Run a quick connectivity check before wiring it into production code

Connect from your application (ethers.js)

const { ethers } = require("ethers");
var urlInfo = {
  url: "YOUR_CHAINSTACK_ENDPOINT",
};
var provider = new ethers.providers.JsonRpcProvider(urlInfo, NETWORK_ID);
provider.getBlockNumber().then(console.log);
  • NETWORK_ID — MegaETH network ID:
    • Mainnet4326
    • Testnet6342

This confirms your application can connect and read live chain data before integrating more complex logic. Note that MegaETH’s custom gas model means you should always use on-chain gas estimation via the RPC rather than relying on local EVM simulation — some toolchains may throw “intrinsic gas too low” errors without this adjustment.

📖 For a full list of MegaETH-compatible tools including MetaMask, Hardhat, ethers.js, viem, and Foundry, see the Chainstack MegaETH tooling documentation.

Using the Realtime API

MegaETH exposes a custom realtime_sendRawTransaction method on top of standard JSON-RPC. This enables sub-second transaction confirmation paths that are not possible on standard Ethereum endpoints. Check provider availability for this method before building latency-critical flows — it may not be present on all third-party endpoints.

📖 For more information on the MegaETH Realtime API, see the official documentation.

Using Chainlist

Chainlist can quickly add MegaETH to wallets like MetaMask or Rabby by auto-filling the correct RPC URL and chain parameters. This is useful for wallet configuration and end-user onboarding.

Chainlist is not an infrastructure provider. For production applications, always replace any public or community RPC URL from Chainlist with your managed endpoint before launch. Public endpoints obtained through Chainlist carry no uptime guarantees and may not support archive queries or the Realtime API.

Chainstack pricing for MegaETH RPC

Chainstack uses request-unit-based pricing, which is easier to forecast than compute-unit models — especially important on MegaETH, where high TPS can amplify compute-weighted billing unpredictably.

PlanCostRequests/MonthRPSOverage (per 1M extra)
Developer$03M (~25 RPS)~25$20
Growth$4920M~250$15
Pro$19980M~400$12.5
Business$349140M~600$10
EnterpriseFrom $990400M+CustomFrom $5

Advanced options:

How to estimate monthly cost

  • Forecast average and peak requests per day
  • Convert to monthly request units
  • Add 20–30% buffer for burst spikes — MegaETH’s high TPS means traffic patterns are more volatile than Ethereum
  • Verify that your RPS tier matches peak traffic — 10ms blocks can generate 100x more requests than equivalent Ethereum workloads
  • Compare shared tier vs dedicated economics at projected scale

For MegaETH specifically: if your application is latency-critical (trading bots, real-time DeFi, or on-chain gaming), throughput tiers and overage policy matter more than base plan price.

Production readiness checklist

Before launch, validate these controls:

  • Primary and fallback RPC provider configured
  • Request timeout policy set (MegaETH’s fast blocks mean stale responses age out quickly)
  • Retry logic with exponential backoff implemented
  • Chain ID validated at startup via eth_chainId (0x10e6 for mainnet)
  • Gas estimation routed through RPC, not local simulation
  • Credentials stored in environment variables or a secrets manager — never hardcoded
  • Monitoring for latency, error rate, and throttling (429 responses)
  • Alerts for sustained degradation
  • eth_getLogs access confirmed and block range limits understood
  • debug/trace method availability verified with provider if needed

These controls prevent the most common RPC incidents in production on MegaETH. The gas model difference is the most frequently missed item for teams migrating from Ethereum.

Troubleshooting common MegaETH RPC issues

IssueLikely CauseHow to Fix
429 Too Many RequestsCU or bandwidth limit exceeded on shared endpointMove to managed endpoint, reduce polling frequency, batch requests where possible
Wrong chain ID returnedEndpoint pointed to wrong networkValidate eth_chainId at startup; fail fast on mismatch
“intrinsic gas too low” errorLocal gas estimation bypassing MegaEVMForce on-chain estimation via the RPC; avoid local simulation for gas
debug/trace methods return errorsMethods unavailable on public endpointsSwitch to a managed provider with confirmed debug support, or redesign without trace
WebSocket disconnects frequentlyMini-block rate overwhelms connection keepalive settingsAdd reconnect logic, heartbeat handling, and missed-event backfill on reconnect
High latency on real-time flowsUsing HTTPS polling instead of WebSocket subscriptionsSwitch time-critical paths to WebSocket; use Realtime API for tx submission
Realtime API method not foundProvider does not expose realtime_sendRawTransactionVerify provider supports Realtime API; fall back to eth_sendRawTransaction

Conclusion

MegaETH’s real-time architecture makes RPC provider selection far more critical than on standard Ethereum L1 or L2 chains. At 10ms block intervals and up to 100,000 TPS, infrastructure gaps that are invisible on slower networks become immediate application failures.

Your provider must support burst traffic, reliable event delivery via eth_getLogs, stable WebSocket connections, correct gas estimation, and ideally the Realtime API for latency-sensitive transaction flows — not just basic JSON-RPC uptime.

Use public endpoints for prototyping, then migrate to managed infrastructure with confirmed MegaETH support and SLA-backed reliability before production launch.

Start with Chainstack, validate your query and gas estimation patterns in staging, then scale to dedicated infrastructure as traffic grows.

FAQ

Can I use Ethereum tooling with MegaETH?

Yes. MegaETH is EVM-compatible, so ethers.js, web3.js, Hardhat, and MetaMask all work. Point them at a MegaETH RPC endpoint instead of Ethereum. The one significant exception is gas estimation — always use on-chain estimation through the RPC, as local simulation tools may not correctly model MegaEVM’s gas behavior.

How does MegaETH RPC differ from Ethereum RPC?

The JSON-RPC interface is the same, but MegaETH has 10ms mini-blocks (vs ~12s Ethereum), a unique gas model, unavailable debug and trace methods on public endpoints, and an additional realtime_sendRawTransaction method for ultra-low-latency transaction submission.

What SDKs work with MegaETH RPC endpoints?

Most teams use ethers.js or web3.js. Any SDK supporting the Ethereum JSON-RPC standard works with MegaETH. Configure the provider URL to point to your MegaETH endpoint and set gas estimation to use RPC rather than local simulation.

Can I use MetaMask with MegaETH?

Yes. MetaMask supports MegaETH as a custom network (Chain ID 4326, native token ETH). Chainlist can add it automatically. For production dApps, wire your frontend to a managed RPC endpoint rather than the public endpoint.

Is a public MegaETH endpoint enough for production?

Usually no. Public endpoints have dynamic rate limits, no debug/trace access, no uptime guarantees, and no Realtime API guarantees. Production applications — especially those that need real-time performance — require managed infrastructure.

What should I monitor on my MegaETH RPC layer?

Track p95/p99 latency, failure rate, 429 responses, WebSocket reconnect frequency, and block lag. For real-time or event-heavy applications, monitor eth_getLogs delivery latency, missed mini-block windows, and gas estimation error rates.

Additional resources

SHARE THIS ARTICLE

Why we are excited about Hyperledger Fabric 2.0

Several weeks ago, Hyperledger announced the general availability of Fabric version 2.0. Being the first of the Hyperledger projects to reach the 2.0 mark, the release was celebrated as a significant milestone throughout the enterprise blockchain ecosystem.

Ashlie Chin
Feb 26
Customer Stories

Cyvers

Cyvers hit 335% ROI on infrastructure with Chainstack Archive Nodes and Debug & Trace.

Curra

Curra creates a new paradigm for decentralized crypto payments with exceptional reliability from Chainstack infrastructure.

1inch

Empowering access to real-time data across multiple networks, ensuring accurate information and a seamless UX.