> For the complete documentation index, see [llms.txt](https://polarisproject.gitbook.io/polaris-defi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://polarisproject.gitbook.io/polaris-defi/beginners-guides/setting-up-metamask-polygon.md).

# Setting Up Metamask (Polygon)

To buy Polar and use the Polaris platform on Polygon blockchain and you will need to set up the Matic network on your Metamask.&#x20;

&#x20;It’s pretty simple and straightforward, and it’s easy to switch back and forth between Layer 1 and Layer 2 using the button near the top of the MetaMask application.

* Click on the network selection button on the top of the Metamask app. Metamask installation is described in the previous BSC section.
* Click on the **“Custom RPC”** to add the Matic mainnet information.
* Select **“Custom RPC”**.

![](/files/-Md3OSB4rdOeWy1Ohf9_)

After clicking **“Custom RPC”**, a screen will appear allowing you to set up the custom RPC for Matic Network. Enter in the Matic mainnet details as follows:

![](/files/-Md3OVh6NKFPtE-uNe9E)

* **Network Name:** Matic Mainnet
* **New RPC URL:** Select one of the following
  * `https://matic-mainnet-archive-rpc.bwarelabs.com`` `**`(recommended)`**
  * `https://rpc-mainnet.matic.network`&#x20;
  * `https://rpc-mainnet.maticvigil.com`&#x20;
  * `https://rpc-mainnet.matic.quiknode.pro`&#x20;
  * `https://matic-mainnet.chainstacklabs.com`&#x20;
  * `https://matic-mainnet-full-rpc.bwarelabs.com`&#x20;
* **Chain ID:** 137
* **Symbol:** MATIC
* **Block Explorer URL**: <https://polygonscan.com/>

Once you’ve added the details click on the “**Save”** button. You’ll then be connected to the Matic mainnet. That's all!&#x20;

Lastly, if you need a bit of MATIC coin to pay for gas fees for your first transaction, please visit the **Polygon faucet** at <http://matic.supply>


---

# 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, and the optional `goal` query parameter:

```
GET https://polarisproject.gitbook.io/polaris-defi/beginners-guides/setting-up-metamask-polygon.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
