How to add Polygon zkEVM to MetaMask

Learn how to add Polygon zkEVM Mainnet and Testnet to Metamask with your custom RPC endpoint.

Overview

  1. What is Polygon zkEVM?
  2. Mainnet vs. Testnet
  3. Create a free Alchemy account
  4. Create a Polygon zkEVM App
  5. Add to Wallet

Updating your Metamask RPC manually

  1. Copy your HTTP API Key
  2. Add Polygon zkEVM Mainnet
  3. Add Polygon zkEVM Testnet

What is Polygon zkEVM?

Polygon zkEVM is a Layer 2, EVM equivalent chain, using zero-knowledge cryptographic proofs to enable fast throughput and low costs.

This article will guide you on adding Polygon zkEVM Mainnet and Testnet as your custom MetaMask RPC node provider.


Mainnet vs. Testnet

There are two networks of Polygon zkEVM: Mainnet and Testnet. The endpoints are as follows:

  1. Mainnet: https://polygonzkevm-mainnet.g.alchemy.com/v2/your-api-key
  2. Testnet: https://polygonzkevm-testnet.g.alchemy.com/v2/your-api-key

Set up a free Alchemy account

This is an essential step. Just do it. here.

Since Polygon zkEVM is a Layer 2 solution, be sure to select the Ethereum + L2 Ecosystem during sign-up.


Create a Polygon zkEVM App

Check out these instructions for creating a new app. Make sure to specify Polygon zkEVM as the chain and choose Mainnet or Testnet as the network.

1644

Add to Wallet

Alchemy provides an Add To Wallet button for Polygon zkEVM apps.

This is a more convenient way to add the Polygon zkEVM network to your Metamask wallet rather than manually configuring it.

Add to Wallet Button

Add to Wallet Button

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.


Add Polygon zkEVM Mainnet

  1. Open Metamask and click the network name located at the top-right of the window
  1. Click the Add Network button at the bottom of the pop-up window
  1. Enter the following network details and click Save

After clicking Save, you will be directly switched to Optimism within the dropdown list

758

That's it! You've now added the Polygon zkEVM network with Alchemy connected.

📘

Note

⛓️ To explore other free and public Polygon zKEVM RPC endpoints, visit Alchemy Chain Connect.


Add Polygon zkEVM Testnet

Polygon zkEVM Testnet is the testnet for Polygon zkEVM. It's purely meant for testing purposes!

Adding the testnet is the same process as adding the mainnet shown above, with a few slight differences.

  1. 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

  1. Enter the following network details and click Save

That's it! You have successfully added Polygon zkEVM Testnet to your Metamask with Alchemy Connected 🎉