# Metamask: Add xDai Chain (xDai)

In this HOW-TO we will describe the steps needed to connect your metamask to xDai:

1\) Open Metamask, and select "Custom RPC" from the Network dropdown on top of the screen:

![](/files/JCftUmLzns9TiCS2osHu)

2\) In the "Custom RPC" Settings, add in the xDai network details and click **Save**:

* Network Name: **xDai**
* New RPC URL: [**https://rpc.xdaichain.com/**](https://rpc.xdaichain.com/)
* Chain ID: **0x64**
* Symbol: **xDai**
* Block Explorer URL:  [**https://blockscout.com/xdai/mainnet**](https://blockscout.com/xdai/mainnet/)

{% hint style="info" %}
Note: Chain ID 0x64 is the hexadecimal equivalent of 100, which is the xDai chain ID. You may need to reenter the Chain ID: 100, and it will be converted to a hexadecimal: 0x6&#x34;**.**

**If you are having issues, try entering 100 for Chain ID and resaving the configuration.**
{% endhint %}

Check out the following HOW-TO section for bridging your assets to xDai:

{% content-ref url="/pages/FYNhHDsUdCS5nj3MsaB4" %}
[To xDai chain (xDai)](/autofarm-network/how-tos/bridge-assets/to-xdai-chain-xdai.md)
{% endcontent-ref %}


---

# 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://autofarm.gitbook.io/autofarm-network/how-tos/use-autofarm-in-different-chains/xdai-chain-xdai/metamask-add-xdai-chain-xdai.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.
