# How to Add Polygon to MetaMask

This guide will teach you key features of the Polygon chain and how to add Polygon to MetaMask. You’ll also be able to configure your wallet to interact with your dApp on the Polygon mainnet or testnet and add custom tokens to MetaMask.

### Installing and setting up MetaMask

Millions of users trust MetaMask as their crypto wallet of choice. It serves as a gateway to dApps, with the browser extension connecting Web2 and Web3 to create seamless transactions. Before you can add Polygon to MetaMask, set up a wallet with these simple steps:

**Step 1** - Download MetaMask for your browser of choice from the [official website](https://metamask.io/download/). BE CAUTIOUS and ensure you get the real extension and avoid phishing sites.

<figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-a56b737f50d3b3a5fba9e480be92acb587c06647%2Funnamed%20(1).png?alt=media" alt="install metamask"><figcaption></figcaption></figure>

**Step 2** - Start configuring your wallet. Note that whether you agree to share data or not won’t affect your experience.

<figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-bbe0226ab39ae4ffb7c8d078da2921d2f7c6ab12%2Funnamed.png?alt=media" alt="metamask configure wallet"><figcaption></figcaption></figure>

**Step 3** - Create a new wallet and come up with a password. Write it down or use a robust password manager.

<figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-c886cea4c768eeb61e680c73650b8337bd2b492f%2Funnamed%20(2).png?alt=media" alt="metamask creating a wallet"><figcaption></figcaption></figure>

**Step 4** - Get your secret recovery phrase and ensure you store it securely. Remember that it cannot be restored if you lose it.

<figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-8189317546480aba40ff2d3563be3a71c05be908%2Funnamed%20(3).png?alt=media" alt="metamask setting recovery phrase"><figcaption></figcaption></figure>

**Step 5** - After you confirm your recovery phrase, your MetaMask is all set.

<figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-e3e3ebb4f14fbd2eb8b507455542a5608c5030e2%2Funnamed%20(4).png?alt=media" alt="metamask recovery phrase confirmed"><figcaption></figcaption></figure>

However, you’ll be connected to Ethereum mainnet by default. From here, you need to add Polygon network to MetaMask:

### **Configuring the Wallet**

Time to make the wallet use RPC Fast. Navigate to the top and add a new network to your list:

<figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-19dc63d4ad9620abad3e13fe31ba70fa3a001fcc%2Funnamed%20(5).png?alt=media" alt="metamask add a new network"><figcaption></figcaption></figure>

Now, log into your [RPC Fast Dashboard](https://control.rpcfast.com/) to find your API key and endpoint. It will look like this:

<figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-d27e9e68b5454e3ab191b10719f3e1677cb81e7a%2Funnamed%20(6).png?alt=media" alt="rpc fast dashboard"><figcaption></figcaption></figure>

Copy the endpoint with your API key and use it as the RPC URL. Add details to MetaMask:

* Network Name: Polygon Mainnet
* New RPC URL: <https://polygon-mainnet.rpcfast.com?api\\_key=YOUR\\_KEY>
* Chain ID: 137
* Currency symbol: MATIC
* Block explorer URL: <https://polygonscan.com/>

Your final result will look like this:

<figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-c6a61260b8557f98bfb27e20d6d5d7fdaf4ffe9e%2Funnamed%20(7).png?alt=media" alt="add polygon to metamask"><figcaption></figcaption></figure>

#### **Alternative Ways to Add Main Chain & Testnet**

If you want to connect directly to Polygon, use <https://polygon-rpc.com> or press the "Add Polygon Network" button in the footer of the [Polygonscan ](https://polygonscan.com/)website.

<figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-afb1c96b598dd70f2d1005a89d7fc9d979631372%2Funnamed%20(8).png?alt=media" alt="metamask notification"><figcaption></figcaption></figure>

To connect to the Mumbai Testnet, use the RPC <https://rpc-mumbai.maticvigil.com/> with Chain ID 80001, MATIC currency, and <https://mumbai.polygonscan.com/> in the block explorer field.

<figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-1fd54786ea0a1ae9994295ab3a6c053e4790993e%2Funnamed%20(9).png?alt=media" alt="add a network manually"><figcaption></figcaption></figure>

Your Polygon network MetaMask link is in place. Now you can use the wallet to interact directly with your dApp both on the mainnet and in testnet environments.

### **Adding Polygon tokens to MetaMask**

After adding Polygon to MetaMask, you will already see MATIC tokens in your wallet. MetaMask also makes it easy to add new tokens, for example, if you’re minting your own in a dApp. Here’s how you can do it in two steps:

1. Navigate to the bottom of your wallet and hit Import Tokens.

   <figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-04b54ad8da6a1299fda86b8b1d46948bd82293d7%2Funnamed%20(10).png?alt=media" alt="import tokens"><figcaption></figcaption></figure>
2. Specify your address, token symbol, and decimal. In this case, it’s TST on a test contract.

   <figure><img src="https://1798863941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRRBph8Hty4VwnYxGM39r%2Fuploads%2Fgit-blob-ecf34dc6be897faaf71ceb333ef3d6b0873008e8%2Funnamed%20(11).png?alt=media" alt="import tokens"><figcaption></figcaption></figure>

Now that you’ve finished the Polygon MetaMask setup, you can allow users to interact with your dApp directly and unlock the full potential of Web3 with the help of RPC Fast.

**Сonclusion**

Setting up Polygon on MetaMask allows you to bridge the gap between Web2 and Web3, interacting with your dApp from a browser extension. All you need to do is create a wallet, connect it to your RPC Fast API, and add any tokens you plan to work with.

From now on, you can interact with the chain and build amazing things with the help of Polygon’s robust scaling and lightning-fast transaction speed.
