MegaETH RPC
MegaETH 개요
MegaETH is a high-performance blockchain platform featuring MegaEVM, an advanced execution environment built on Ethereum standards. The latest hardfork, Rex, is based on Optimism Isthmus (derived from Ethereum Prague), ensuring broad smart contract compatibility with the Ethereum ecosystem.
MegaETH is EVM-compatible, allowing most existing Ethereum-based Solidity contracts to run with minimal or no changes. All standard development tools like Hardhat, Foundry, and Remix work seamlessly. Key enhancements include a multidimensional gas model (separating compute and storage costs), higher contract limits (512 KB vs Ethereum's 24 KB), and advanced resource management. Note that contracts using deprecated opcodes like SELFDESTRUCT or relying on specific gas mechanics may require adjustments.
Interacting with MegaETH's APIs
MegaETH nodes expose a JSON-RPC interface that is compatible with Ethereum's JSON-RPC API. This means developers can use Ethereum's native tools, such as Foundry, Hardhat, and popular Web3 libraries, without modification.
However, due to MegaETH's architectural differences (including its multidimensional gas model and enhanced contract limits), some RPC methods may behave differently from those on Ethereum. We highly recommend cross-referencing with the official MegaETH documentation for the latest updates and technical specifications.
Make MegaETH API Calls
The quickest way to start building on MegaETH is to create a Quicknode endpoint and send your first JSON-RPC request.
Quicknode provides managed MegaETH endpoints, giving you immediate access to the MegaETH Mainnet and Testnet without the overhead of running infrastructure. These endpoints offer:
- 높은 신뢰성 – 가동 중단 시간을 최소화하도록 설계된 전 세계에 분산된 인프라
- 향상된 성능 – 프로덕션급 앱을 위한 지연 시간 및 요청 처리 최적화
- 통합 생태계 – Quicknode 마켓플레이스의 전용 API(애드온) 및 Streams와 같은 제품을 통한 추가 기능
QuickStart 페이지를 방문하여 엔드포인트를 생성하고 첫 번째 요청을 보내보세요.
지원되는 네트워크
Quicknode provides access to the following MegaETH networks:
Data Availability & Pruning Policy
Quicknode's MegaETH nodes run with --prune.policy=full, which applies a ~15-day (1,296,064-block) retention window for certain data categories. Here's what this means for data availability:
Available indefinitely:
- Block data — Block headers and bodies are never pruned. Methods like
eth_getBlockByNumber그리고eth_getBlockByHashwork for all historical blocks. - Transaction data — Transaction records and hash-to-block lookups are retained indefinitely. Methods like
eth_getTransactionByHashwork for all historical transactions.
Subject to ~15-day retention window:
- Receipt data — Transaction receipts (
eth_getTransactionReceipt,eth_getBlockReceipts) are pruned from the database after ~15 days but are also persisted in static files. - Historical state queries — Methods that require account or storage history at a past block (e.g.,
eth_call,eth_getBalance,eth_getStorageAt,eth_getCode,eth_getTransactionCountwith a historical block number) are limited to the ~15-day pruning window. Queries for state older than ~15 days may return errors or incomplete data.
The following data categories are pruned under the 전체 policy:
account_history— account state change sets (~15-day window)storage_history— storage state change sets (~15-day window)영수증— transaction receipts (~15-day window)salt_history— salt change sets (~15-day window)withdrawal_history— (~90-day window)sender_recovery— fully pruned
The following are never pruned: 헤더, 거래, transaction_lookup, bodies_history.
Complete reference for developers building on MegaETH with Quicknode:
빠른 시작
Get started with MegaETH quickly. Follow our step-by-step quickstart to set up your endpoint and make your first API request.
공급자 엔드포인트
Learn how to configure and manage your MegaETH endpoints for optimal performance and reliability.
API 개요
강력한 애플리케이션을 구축하는 데 필요한 지원되는 API, 네트워크, Quicknode 제품 및 향상된 API 기능을 살펴보세요.
마켓플레이스
Quicknode 마켓플레이스에서 강력한 애드온과 도구를 찾아 통합하여 웹3 애플리케이션을 강화해 보세요.
엔드포인트 보안
인증, 화이트리스트 적용 및 모범 보안 관행을 통해 엔드포인트를 보호하십시오.
오류 코드
Understand common error codes and troubleshooting steps for MegaETH API requests.