How to Add Polygon to Metamask
Polygon is an Ethereum scaling platform that is decentralized and enables developers to build scalable dApps. This guide will teach you how to add a custom Polygon RPC endpoint to your Metamask.
Overview
- What is Polygon?
- Mainnet vs. Testnet (Mumbai)
- Create a free Alchemy account
- Create a Polygon App
- Add to Wallet
Updating your Metamask RPC manually
What is Polygon?
Polygon is an Ethereum scaling platform that is decentralized and enables developers to build scalable user-friendly dApps. This comes with low transaction fees without ever sacrificing security.
This tutorial will include ways to add Polygon Mainnet and Mumbai Testnet as your custom MetaMask RPC node provider. We’ll be able to add Polygon to Metamask with only a few steps.
Mainnet vs. Mumbai Testnet
There are two networks on Polygon: Mainnet and Mumbai testnet. The endpoints are as follows:
- Mainnet: https://polygon-mainnet.g.alchemy.com/v2/your-api-key
- Mumbai: https://polygon-mumbai.g.alchemy.com/v2/your-api-key
Set up a free Alchemy account
This is an essential step. Just do it. here.
Since Polygon is a Layer 2 solution, be sure to select the Ethereum + L2 Ecosystem during sign-up.
Create a Polygon App
Check out these instructions for creating a new app. Make sure to specify Polygon as the chain and choose Mainnet or Mumbai.
Add to Wallet
Alchemy provides an Add To Wallet button for Polygon apps.
This is a more convenient way to add the Polygon network to your Metamask wallet rather than manually configuring it.
That's it! You should see your Metamask work a lot better now 😉
Updating your Metamask RPC Manually
The below instructions are for updating your Metamask RPC manually instead of using the "Add to Wallet" button.
Copy your HTTP API Key
After creating your app, you should be able to see your Alchemy app’s chain matches the chain you want to connect to.
Here, you can find your HTTP which you will use for your RPC URL in Metamask.
Updating Polygon Mainnet
- Open Metamask and click the network name located at the top-right of the window
- Click the Add Network button at the bottom of the pop-up window
- Enter the following network details and click Save
- Network Name: Polygon Mainnet
- New RPC URL: https://polygon-mainnet.g.alchemy.com/v2/your-api-key
- Chain ID: 137
- Currency Symbol: MATIC
- Block Explorer URL: https://polygonscan.com/
After clicking Save, you will be directly switched to Polygon’s Network within the dropdown list.
That's it! You've now added the Polygon network with Alchemy connected.
Note
⛓️ To explore other free and public Polygon RPC endpoints, visit Alchemy Chain Connect.
Update Polygon Testnet (Mumbai)
Mumbai Testnet replicates the Polygon Mainnet, which is to be used for testing.
Adding the testnet is the same process as adding the mainnet shown above but with a different RPC endpoint.
- First, make sure you’ve enabled the Show test networks toggle.
This will list all the default test networks within your network list. You can find this in Settings>Advanced>Show test Networks
- Enter the following network details and click Save
- Network Name: Mumbai Testnet
- New RPC URL: https://polygon-mumbai.g.alchemy.com/v2/your-api-key
- Chain ID: 80001
- Currency Symbol: MATIC
- Block Explorer URL: https://mumbai.polygonscan.com/
Updated over 1 year ago