# Adding Harmony

### Adding Harmony to MetaMask

Open MetaMask and click the list of networks at the top, then select "Add Network".

![](https://3781397247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LlEOlYqEG_GKuO5Rehq%2Fuploads%2FgOxPBxSYKOaCj43fB9YB%2Fimage.png?alt=media\&token=27403c50-413f-4559-8aa9-d601258f9783)

### Fill the Endpoint Information

You will be prompted for additional information. Use the table below to complete the step. Below you will see multiple options for RPC URL and Chain ID corresponding to mainnet vs testnet, and the various shards within each.

{% hint style="info" %}
**Use the RPC URL and Chain ID of Shard 0 if you want to send/receive transactions from exchanges or do any staking transaction type.**
{% endhint %}

| Field                                                    | Mainnet                                                                        | Testnet                                                                       | Devnet                                                            |
| -------------------------------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| **Network Name**                                         | Harmony Mainnet                                                                | Harmony Testnet                                                               | Harmony Devnet                                                    |
| **New RPC URL**                                          | <p><https://api.harmony.one></p><p><https://s1.api.harmony.one></p><p></p>     | <p><https://api.s0.b.hmny.io></p><p><https://api.s1.b.hmny.io></p>            | <p><https://api.s0.ps.hmny.io><br><https://api.s1.ps.hmny.io></p> |
| <p><strong>Chain ID</strong></p><p>(use number only)</p> | <p>Shard 0: <code>1666600000</code></p><p>Shard 1: <code>1666600001</code></p> | <p>Shard 0: <code>1666700000</code><br>Shard 1: <code>1666700001</code></p>   | <p>Shard 0: 1666900000<br>Shard 1: 1666900001</p>                 |
|                                                          |                                                                                |                                                                               |                                                                   |
| **Currency symbol (optional)**                           | ONE                                                                            | ONE                                                                           | ONE                                                               |
| **Block Explorer URL (optional)**                        | <https://explorer.harmony.one/>                                                | [https://explorer.testnet.harmony.one/](https://explorer.testnet.harmony.one) | <https://explorer.ps.hmny.io>                                     |

The example below shows the configuration that needs to be done to connect to Harmony Mainnet on Shard 0:

![](https://3781397247-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlEOlYqEG_GKuO5Rehq%2Fsync%2F5b440e870581713f62524f42bcfd3e4483122a3f.png?generation=1626361003732109\&alt=media)

Click the Save button and your configuration should be done!

{% hint style="success" %}
if you have any issue fetching data like chain-id, try to type the `new RPC URL` instead copy pasting it.
{% endhint %}


---

# 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.harmony.one/home/general/ecosystem/wallets/browser-extensions-wallets/metamask-wallet/adding-harmony.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.
