Adding RPC nodes to MetaMask

The steps to add Ethereum, Polygon, and BSC RPC nodes to MetaMask are the same. This tutorial uses Polygon as an example to guide you on how to add custom RPC node service networks of Polygon Mainnet and Mumbai Testnet to MetaMask. You can add Polygon to MetaMask in a few steps.


  1. product introduction page
  2. Create the API key required for configuring the network on MetaMask
  3. Copy your network URL
  4. Copy your network URL

Step 1: Create a ZAN account

A ZAN account is required if you want to create an API key on the ZAN platform for configuring an RPC node service network on MetaMask. For more information, see Preparing a ZAN account.

Step 2: Create the API key required for configuring the network on MetaMask

If you want to configure the RPC node service network we provide for you on MetaMask, you need to create an API key on the ZAN platform. This key is used for verification during node connection.
You can create the API key on the ZAN platform. After the API key is created, you can get the URLs of all blockchain mainnets and testnets currently supported by the platform.

Step 3: Copy your network URL

After the API key is created, you can get the URLs that can be used for the RPC URL on MetaMask. By clicking the drop-down menu in the upper-right corner of the specific blockchain module, you can switch networks, such as the testnet and mainnet. Different URLs are provided for different networks. Click Copy to the right of the HTTPS URL to quickly copy the URL. For more information, see Getting API key information.

The following table lists the network URLs of the blockchains currently supported by the ZAN platform.

Ethereum Mainnet{apikey}wss://{apikey}1ETH
Ethereum Testnet Goerli{apikey}wss://{apikey}5ETH
Ethereum Testnet Sepolia{apikey}wss://{apikey}11155111ETH
BSC Mainnet{apikey}wss://{apikey}56BNB
BSC Testnet{apikey}wss://{apikey}97BNB
Polygon Mainnet{apikey}wss://{apikey}137MATIC
Polygon Mumbai{apikey}wss://{apikey}80001MATIC
Optimism Mainnet{apikey}wss://{apikey}10OPT
Optimism Goerli{apikey}wss://{apikey}420OPT
Arbitrum Mainnet{apikey}wss://{apikey}42161ARB
Arbitrum Goerli{apikey}wss://{apikey}421613ARB
TRON Mainnet{apikey}/jsonrpcwss://{apikey}/jsonrpcN/ATRON
TRON Nile Testnet{apikey}/jsonrpcwss://{apikey}/jsonrpcN/ATRON
Sui Mainnet{apikey}wss://{apikey}N/ASUI
Sui Testnet{apikey}wss://{apikey}N/ASUI
Aptos Mainnet{apikey}wss://{apikey}N/AAPT
Aptos Testnet{apikey}wss://{apikey}N/aAPT
Bitcoin Mainnet{apikey}wss://{apikey}N/ABTC
Bitcoin Testnet{apikey}wss://{apikey}N/ABTC
Avalanche Mainnet{apiKey}wss://{apikey}43114AVAX
Avalanche Fuji{apiKey}wss://{apikey}43113AVAX

Step 4: Add the network

This section describes how to add Polygon Mainnet and Polygon's Mumbai Testnet to MetaMask.

Adding Polygon Mainnet

  1. Open MetaMask and click the target network name in the upper-right corner of the window.

  2. Click Add network at the bottom of the pop-up window.

  3. Click Add a network manually at the lower-left part of the page to add the network.

    πŸ“˜ Note: If the mainstream network you want to add is already in the list, such as Polygon Mainnet, you can also directly click Add to add the network.
  4. Enter the following network details and click Save.

    Network NameThe name of the network, which facilitates easy identification of different networks.
    If you are adding a custom network, we recommend that you use the network name, such as ETH Mainnet.
    New RPC URLThe URL of the message server, which tells the MetaMask wallet where to send transaction requests.
    Different chains have different fixed servers. Enter the network URL that you obtained in the ZAN console. For more information, see Step 3.
    Chain IDThe chain ID, which is used to sign transactions. Different chains have different fixed IDs.
    The chain ID is required for obtaining network configuration. For example, Polygon's chain ID is 137.
    Currency SymbolThe currency symbol that MetaMask uses for the network's native currency.
    For example, the currency symbol is ETH for Ethereum Mainnet, BNB for BSC networks, and MATIC for Polygon networks.
    Block Explorer URLThe URL of the blockchain browser, which is used to check transaction details and other information.
    For example, the URL of the blockchain browser for Polygon is

After you click Save, you are switched to Polygon Mainnet in the network drop-down list.

You have successfully completed all configurations for adding the Polygon Mainnet.

Adding Polygon's Mumbai Testnet

Mumbai Testnet replicates the Polygon's mainnet that is used for testing purposes. The steps to add a testnet are basically the same as those for adding a mainnet. The only difference lies in that the RPC node service network is different.

  1. Make sure that you have turned on the Show test networks toggle.
    After the toggle is turned on, all default test networks are displayed in the network list. Go to Settings > Advanced, and turn on Show test networks.

  2. Enter the following network details and click Save.

    For information about how to configure the related parameters, see Step 4 in Updating Polygon Mainnet.