# MegaETH

> Pages under MegaETH in the Alchemy Docs.

## Pages

- [Quickstart](https://www.alchemy.com/docs/reference/megaeth-api-quickstart.md): How to get started building on MegaETH using Alchemy
- [MegaETH API Overview](https://www.alchemy.com/docs/megaeth/megaeth-api-overview.md): Overview of available MegaETH API methods
- [eth_blockNumber](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-block-number.md): Returns the number of the most recent block.
- [eth_call](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-call.md): Executes a new message call immediately without creating a transaction on the blockchain.
- [eth_callMany](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-call-many.md): Executes a list of transaction bundles without creating transactions on the blockchain. This method is particularly useful for simulating transactions to understand their potential outcomes. It supports simulating transactions at an intermediate state of a block, simulating multiple transactions with sequential dependencies, and overwriting block headers.

- [eth_chainId](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-chain-id.md): Returns the chain ID of the current network as a hexadecimal string.
- [eth_estimateGas](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-estimate-gas.md): Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
- [eth_feeHistory](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-fee-history.md): Returns historical base fee per gas and priority fee per gas data for a range of blocks.
- [eth_gasPrice](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-gas-price.md): Returns the current price per gas in wei.
- [eth_getAccount](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-account.md): Retrieve account details (code hash, storage root, balance, nonce) for a given address at a specified block number or tag.

- [eth_getAccountInfo](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-account-info.md): Retrieves account information including balance, code, and nonce for a given address at a specified block.
- [eth_getBalance](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-balance.md): Returns the balance of the account of a given address.
- [eth_getBlockByHash](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-block-by-hash.md): Returns information about a block by its hash.
- [eth_getBlockByNumber](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-block-by-number.md): Returns information about a block by its number.
- [eth_getBlockReceipts](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-block-receipts.md): Returns the receipts of a block by number or hash.
- [eth_getBlockTransactionCountByHash](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-block-transaction-count-by-hash.md): Returns the number of transactions in a block from a block matching the given block hash.
- [eth_getBlockTransactionCountByNumber](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-block-transaction-count-by-number.md): Returns the number of transactions in a block matching the given block number.
- [eth_getCode](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-code.md): Returns the code at a given address.
- [eth_getCodeByHash](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-code-by-hash.md): Returns the contract bytecode associated with a given code hash (the keccak256 hash of the bytecode). Unlike eth_getCode, which looks up code via an account address at a specific block, this method resolves code directly from its hash, letting callers deduplicate bytecode fetches when multiple accounts share the same implementation (e.g., minimal proxies, upgradeable proxies, EIP-7702 delegators). Used by MegaETH's stateless validator to fetch witness-referenced contract code on demand.
- [eth_getFilterChanges](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-filter-changes.md): Polls for changes in the filter with the given ID (created using eth_newFilter). Returns an array of logs which occurred since the last poll.
- [eth_getFilterLogs](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-filter-logs.md): Returns an array of all logs matching the filter with the given ID (created using eth_newFilter).
- [eth_getHeaderByHash](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-header-by-hash.md): Returns the block header identified by the given block hash. Structurally identical to eth_getBlockByHash but omits body-level fields (size, transactions, uncles, withdrawals), making it cheaper to fetch when only consensus fields are needed (e.g., chain-tip anchoring for light clients or stateless validators).
- [eth_getHeaderByNumber](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-header-by-number.md): Returns the block header identified by the given block number or tag. Structurally identical to eth_getBlockByNumber but omits body-level fields (size, transactions, uncles, withdrawals). Accepts the standard block tags (earliest, latest, safe, finalized, pending) in addition to a hex-encoded block number.
- [eth_getLogs](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-logs.md): Returns an array of all logs matching the specified filter.
- [eth_getRawTransactionByHash](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-raw-transaction-by-hash.md): Returns the raw transaction data (RLP-encoded) for a transaction by its hash.
- [eth_getStorageAt](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-storage-at.md): Returns the value from a storage position at a given address.
- [eth_getTransactionByBlockHashAndIndex](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-transaction-by-block-hash-and-index.md): Returns information about a transaction by block hash and transaction index position.
- [eth_getTransactionByBlockNumberAndIndex](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-transaction-by-block-number-and-index.md): Returns information about a transaction by block number and transaction index position.
- [eth_getTransactionByHash](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-transaction-by-hash.md): Returns information about a transaction requested by transaction hash.
- [eth_getTransactionCount](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-transaction-count.md): Returns the number of transactions sent from an address.
- [eth_getTransactionReceipt](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-transaction-receipt.md): Returns the receipt of a transaction by transaction hash.
- [eth_getWithdrawalProof](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-get-withdrawal-proof.md): Returns the Merkle proof for a given account (and optionally some storage keys) against the withdrawal state root used by MegaETH's L2→L1 withdrawal flow. MegaETH is an OP Stack chain, and withdrawals are initiated by writing to the predeployed L2ToL1MessagePasser at 0x4200000000000000000000000000000000000016; this method returns the account/storage proof needed to prove and finalize a withdrawal on L1. The parameter and result shape match eth_getProof.
- [eth_maxPriorityFeePerGas](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-max-priority-fee-per-gas.md): Returns the current maximum priority fee per gas in wei.
- [eth_newBlockFilter](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-new-block-filter.md): Creates a filter in the node to notify when new blocks arrive.
- [eth_newFilter](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-new-filter.md): Creates a filter object based on filter options to notify when state changes (logs).
- [eth_sendRawTransaction](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-send-raw-transaction.md): Submits a raw transaction to the network.
- [eth_simulateV1](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-simulate-v-1.md): Enables simulation of complex transactions and state changes without modifying the blockchain.
- [eth_submitWork](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-submit-work.md): Submit a proof-of-work solution (Ethash) consisting of a nonce, the header PoW hash, and the mix digest. Not supported on post-Merge Ethereum clients; many nodes will return JSON-RPC error -32601 (method not found).

- [eth_subscribe](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-subscribe.md): Subscribe to Ethereum events via WebSocket (WSS required)
- [eth_uninstallFilter](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-uninstall-filter.md): Uninstalls a filter with the given ID.
- [eth_unsubscribe](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/eth-unsubscribe.md): Cancel a WebSocket subscription (WSS required)
- [net_version](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/net-version.md): Returns the network ID that the client is connected to.
- [realtime_sendRawTransaction](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/realtime-send-raw-transaction.md): Submits a transaction and returns the receipt in a single call.
- [web3_clientVersion](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/web-3-client-version.md): Returns the current client version.
- [web3_sha3](https://www.alchemy.com/docs/chains/megaeth/mega-eth-api-endpoints/web-3-sha-3.md): Returns Keccak-256 (not the standardized SHA3-256) hash of the given data.
- [FAQ](https://www.alchemy.com/docs/reference/megaeth-api-faq.md): Frequently asked questions about the MegaETH API
