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.

Procedure

  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.

NetworkHTTPS URLWSS URLChain IDSymbol
Ethereum Mainnethttps://api.zan.top/node/v1/eth/mainnet/{apikey}wss://api.zan.top/node/ws/v1/eth/mainnet/{apikey}1ETH
Ethereum Testnet Goerlihttps://api.zan.top/node/v1/eth/goerli/{apikey}wss://api.zan.top/node/ws/v1/eth/goerli/{apikey}5ETH
Ethereum Testnet Sepoliahttps://api.zan.top/node/v1/eth/sepolia/{apikey}wss://api.zan.top/node/ws/v1/eth/sepolia/{apikey}11155111ETH
BSC Mainnethttps://api.zan.top/node/v1/bsc/mainnet/{apikey}wss://api.zan.top/node/ws/v1/bsc/mainnet/{apikey}56BNB
BSC Testnethttps://api.zan.top/node/v1/bsc/testnet/{apikey}wss://api.zan.top/node/ws/v1/bsc/testnet/{apikey}97BNB
Polygon Mainnethttps://api.zan.top/node/v1/polygon/mainnet/{apikey}wss://api.zan.top/node/ws/v1/polygon/mainnet/{apikey}137MATIC
Polygon Mumbaihttps://api.zan.top/node/v1/polygon/mumbai/{apikey}wss://api.zan.top/node/ws/v1/polygon/mumbai/{apikey}80001MATIC
Optimism Mainnethttps://api.zan.top/node/v1/opt/mainnet/{apikey}wss://api.zan.top/node/ws/v1/opt/mainnet/{apikey}10OPT
Optimism Goerlihttps://api.zan.top/node/v1/opt/goerli/{apikey}wss://api.zan.top/node/ws/v1/opt/goerli/{apikey}420OPT
Arbitrum Mainnethttps://api.zan.top/node/v1/arb/one/{apikey}wss://api.zan.top/node/ws/v1/arb/one/{apikey}42161ARB
Arbitrum Goerlihttps://api.zan.top/node/v1/arb/goerli/{apikey}wss://api.zan.top/node/ws/v1/arb/goerli/{apikey}421613ARB
TRON Mainnethttps://api.zan.top/node/v1/tron/mainnet/{apikey}/jsonrpcwss://api.zan.top/node/ws/v1/tron/mainnet/{apikey}/jsonrpcN/ATRON
TRON Nile Testnethttps://api.zan.top/node/v1/tron/nile/{apikey}/jsonrpcwss://api.zan.top/node/ws/v1/tron/nile/{apikey}/jsonrpcN/ATRON
Sui Mainnethttps://api.zan.top/node/v1/sui/mainnet/{apikey}wss://api.zan.top/node/ws/v1/sui/mainnet/{apikey}N/ASUI
Sui Testnethttps://api.zan.top/node/v1/sui/testnet/{apikey}wss://api.zan.top/node/ws/v1/sui/testnet/{apikey}N/ASUI
Aptos Mainnethttps://api.zan.top/node/v1/aptos/mainnet/{apikey}wss://api.zan.top/node/ws/v1/aptos/mainnet/{apikey}N/AAPT
Aptos Testnethttps://api.zan.top/node/v1/aptos/testnet/{apikey}wss://api.zan.top/node/ws/v1/aptos/testnet/{apikey}N/aAPT
Bitcoin Mainnethttps://api.zan.top/node/v1/btc/mainnet/{apikey}wss://api.zan.top/node/ws/v1/btc/mainnet/{apikey}N/ABTC
Bitcoin Testnethttps://api.zan.top/node/v1/btc/testnet/{apikey}wss://api.zan.top/node/ws/v1/btc/testnet/{apikey}N/ABTC
Avalanche Mainnethttps://api.zan.top/node/v1/avax/mainnet/{apiKey}wss://api.zan.top/node/ws/v1/avax/mainnet/{apikey}43114AVAX
Avalanche Fujihttps://api.zan.top/node/v1/avax/fuji/{apiKey}wss://api.zan.top/node/ws/v1/avax/fuji/{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.

    ParameterDescription
    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 https://etherscan.io/.

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.