# Connect to MegaETH

## Chain Parameters

{% tabs %}
{% tab title="Mainnet" %}

| Parameter              | Value                                                                                                                                             |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Network Name**       | MegaETH                                                                                                                                           |
| **Chain ID**           | <code class="expression">space.vars.mainnet\_chain\_id</code> (<code class="expression">space.vars.mainnet\_chain\_id\_hex</code>)                |
| **Native & Gas Token** | Ether (ETH), 18 decimals                                                                                                                          |
| **RPC URL**            | <code class="expression">space.vars.mainnet\_rpc</code>                                                                                           |
| **Block Time**         | Mini-blocks: <code class="expression">space.vars.miniblock\_time</code> / EVM blocks: <code class="expression">space.vars.evm\_block\_time</code> |
| **Block Gas Limit**    | <code class="expression">space.vars.block\_gas\_limit</code> gas per EVM block                                                                    |
| **Base Fee Per Gas**   | <code class="expression">space.vars.base\_fee\_per\_gas</code>                                                                                    |
| **EIP-1559**           | Base fee adjustment is effectively disabled                                                                                                       |
| {% endtab %}           |                                                                                                                                                   |

{% tab title="Testnet" %}

| Parameter              | Value                                                                                                                                             |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Network Name**       | MegaETH Testnet                                                                                                                                   |
| **Chain ID**           | <code class="expression">space.vars.testnet\_chain\_id</code> (<code class="expression">space.vars.testnet\_chain\_id\_hex</code>)                |
| **Native & Gas Token** | Ether (ETH), 18 decimals                                                                                                                          |
| **RPC URL**            | <code class="expression">space.vars.testnet\_rpc</code>                                                                                           |
| **Managed RPC**        | [Alchemy](https://www.alchemy.com/) sells managed endpoints for higher rate limits                                                                |
| **Block Time**         | Mini-blocks: <code class="expression">space.vars.miniblock\_time</code> / EVM blocks: <code class="expression">space.vars.evm\_block\_time</code> |
| **Block Gas Limit**    | <code class="expression">space.vars.block\_gas\_limit</code> gas per EVM block                                                                    |
| **Base Fee Per Gas**   | <code class="expression">space.vars.base\_fee\_per\_gas</code>                                                                                    |
| **EIP-1559**           | Base fee adjustment is effectively disabled                                                                                                       |

{% hint style="warning" %}
**RPC endpoints are rate limited and may change.** Always check this page for the latest URLs and status.
{% endhint %}

{% hint style="warning" %}
**Network maintenance may occur.** RPCs may go offline during upgrades. Contracts and state may be rolled back in rare cases.
{% endhint %}

{% hint style="info" %}
**Testnet is not incentivized.** Testnet tokens and transactions have no real monetary value. Everything on the chain is solely for experimental purposes.
{% endhint %}
{% endtab %}
{% endtabs %}

## Connect Your Wallet

{% stepper %}
{% step %}

#### Open your wallet settings

In MetaMask, Rabby, or any Ethereum-compatible wallet, go to **Settings → Networks → Add Network**.
{% endstep %}

{% step %}

#### Enter MegaETH network details

{% tabs %}
{% tab title="Mainnet" %}

| Field           | Value                                                         |
| --------------- | ------------------------------------------------------------- |
| Network Name    | MegaETH                                                       |
| RPC URL         | <code class="expression">space.vars.mainnet\_rpc</code>       |
| Chain ID        | <code class="expression">space.vars.mainnet\_chain\_id</code> |
| Currency Symbol | ETH                                                           |
| Block Explorer  | <code class="expression">space.vars.mainnet\_etherscan</code> |
| {% endtab %}    |                                                               |

{% tab title="Testnet" %}

| Field           | Value                                                          |
| --------------- | -------------------------------------------------------------- |
| Network Name    | MegaETH Testnet                                                |
| RPC URL         | <code class="expression">space.vars.testnet\_rpc</code>        |
| Chain ID        | <code class="expression">space.vars.testnet\_chain\_id</code>  |
| Currency Symbol | ETH                                                            |
| Block Explorer  | <code class="expression">space.vars.testnet\_blockscout</code> |
| {% endtab %}    |                                                                |
| {% endtabs %}   |                                                                |
| {% endstep %}   |                                                                |

{% step %}

#### Save and switch

Save the network and switch to MegaETH. Your wallet is now connected.
{% endstep %}
{% endstepper %}

## Block Explorers

{% tabs %}
{% tab title="Mainnet" %}

* [Blockscout](https://megaeth.blockscout.com/)
* [Etherscan](https://mega.etherscan.io)
  {% endtab %}

{% tab title="Testnet" %}

* [Blockscout](https://megaeth-testnet-v2.blockscout.com/)
  {% endtab %}
  {% endtabs %}

## Network Status

Check real-time network performance — block height, block time, and transactions per second — at [uptime.megaeth.com](https://uptime.megaeth.com).

## Getting Testnet ETH

Use the [faucet](/user-guide/faucet.md) to request free testnet tokens.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.megaeth.com/user-guide/connect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
