> For the complete documentation index, see [llms.txt](https://docs.merlinchain.io/merlin-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.merlinchain.io/merlin-docs/developers/builder-guides/developer-tools/wallet/connecting-to-merlin-via-evm-wallet.md).

# Connecting to Merlin via EVM wallet

Merlin is EVM compatible，you can connect to Merlin via your familiar EVM wallet as usual.

Here is the public RPC endpoints you can use:

**MetaMask**

To add Merlin as a custom network to MetaMask:

1. Open the MetaMask browser extension.
2. Open the network selection dropdown menu by clicking the dropdown button at the top of the extension.
3. Click the Add network button
4. Click Add a network manually.
5. In the Add a network manually dialog that appears, enter the public RPC endpoints as the following

**Mainnet**

<table><thead><tr><th width="198">Name</th><th>Value</th></tr></thead><tbody><tr><td>Network Name</td><td>Merlin Mainnet</td></tr><tr><td>Description</td><td>The public Mainnet for Merlin</td></tr><tr><td>RPC URL</td><td>https://rpc.merlinchain.io</td></tr><tr><td>Chain ID</td><td>4200</td></tr><tr><td>Currency Symbol</td><td>BTC</td></tr><tr><td>Block Explorer</td><td>https://scan.merlinchain.io</td></tr></tbody></table>

**Testnet**

<table><thead><tr><th width="191">Name</th><th>Value</th></tr></thead><tbody><tr><td>Network Name</td><td>Merlin Testnet</td></tr><tr><td>Description</td><td>The public testnet for Merlin</td></tr><tr><td>RPC URL</td><td>https://testnet-rpc.merlinchain.io</td></tr><tr><td>Chain ID</td><td>686868</td></tr><tr><td>Currency Symbol</td><td>BTC</td></tr><tr><td>Block Explorer</td><td>https://testnet-scan.merlinchain.io</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.merlinchain.io/merlin-docs/developers/builder-guides/developer-tools/wallet/connecting-to-merlin-via-evm-wallet.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.
