# Link Chiliz Chain and MetaMask

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

1. This topic assumes you have already installed MetaMask on your system. If not, please [install MetaMask](https://docs.chiliz.com/learn/about-wallets/how-to-use-metamask/install-metamask) (either the Chrome-based extension or the mobile app) first.
2. For your convenience, pin 📍 the MetaMask extension to your preferred browser:

<figure><img src="https://3400301555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4L7rBH2rmyoBTn93MSdx%2Fuploads%2FTYcJbC7HkN6HTRjXbbIF%2Fimage.png?alt=media&#x26;token=b36fa766-9a1d-4c1e-be66-2d006a4c8a3d" alt="" width="324"><figcaption></figcaption></figure>

## Steps to connect your wallet

{% hint style="info" %}
You can also use MetaMask's own documentation:\
<https://support.metamask.io/configure/networks/how-to-add-a-custom-network-rpc/>
{% endhint %}

To connect your MetaMask wallet to Chiliz Chain Mainnet or Testnet, do the following:

1. Click on the **MetaMask** icon to open your wallet (it will ask you to type your password).

<figure><img src="https://3400301555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4L7rBH2rmyoBTn93MSdx%2Fuploads%2F1JHuF6gGo7K9Ws2jgbf3%2Fimage.png?alt=media&#x26;token=d8ebe3fb-0999-466e-b22b-1d857fe983d1" alt="" width="102"><figcaption></figcaption></figure>

2. By default, your is connected to Ethereum Mainnet. Click on the dropdown menu to expand it, and select **Add Network**. This will open the MetaMask settings page in the "Networks > Add a network" section.

<figure><img src="https://3400301555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4L7rBH2rmyoBTn93MSdx%2Fuploads%2Fg4iFZkMsXg95HC3TGJf4%2Fimage.png?alt=media&#x26;token=186841a7-ffc2-48b8-849a-bae987935dde" alt="" width="375"><figcaption></figcaption></figure>

3. On the "Add a network" page, click "Add a network manually", and use the form to enter the relevant values in the respective fields of your MetaMask account.\
   \
   For your copy-paste needs, the parameters for Chiliz Chain Mainnet and Spicy Testnet are available here: [connect-to-mainnet-and-testnet](https://docs.chiliz.com/quick-start/developer-toolbox/connect-to-mainnet-and-testnet "mention").<br>

   <figure><img src="https://3400301555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4L7rBH2rmyoBTn93MSdx%2Fuploads%2FtZWo4bj10vhAQuI6iXQi%2Fimage.png?alt=media&#x26;token=c7ef641b-5840-4155-9f67-222372c6dbed" alt=""><figcaption></figcaption></figure>
4. Click **Save**.

{% hint style="success" %}
The "Save" button is enabled only when the form is filled correctly using the provided values.
{% endhint %}

The green checkmark ✅ indicates that you have successfully linked your MetaMask account to Chiliz Chain Mainnet. Now you can start exploring, customising, and using CHZ with your MetaMask Wallet.

{% hint style="info" %}
You need to perform these steps once for Chiliz Chain Mainnet, and once for Spicy Testnet. \
Configuring one network does not imply that the other one is also configured: You have to do both within MetaMask.
{% 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.chiliz.com/learn/about-wallets/how-to-use-metamask/link-chiliz-chain-and-metamask.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.
