Marketplace has launched, further enabling blockchain developers! Learn more

How to set a custom provider in MetaMask

November 24, 2022

Overview

MetaMask is one of the essential tools for web3 development. It comes set up with Ethereum blockchain networks out of the box. But there can be some specific use cases where you might want to add a custom provider to MetaMask for faster transaction processing or to connect to a custom network. In this guide, we’ll cover how to set up a custom provider in MetaMask.

What is MetaMask?

MetaMask is a cryptocurrency wallet browser extension that connects to the Ethereum blockchain and supports other EVM (Ethereum Virtual Machine) based chains. It is one of the best wallets to interact with Decentralized Applications (dApps) and Decentralized Exchanges (DEXs). MetaMask is not limited to storing native blockchain currencies, such as ETH or BSC. It can also store ERC-20 or BEP-20 tokens. It is compatible with major browsers such as Chrome, Firefox, Brave, and Microsoft Edge. 

Let us see how we can set up QuickNode as the custom RPC provider in MetaMask for faster transactions.

Creating an endpoint on QuickNode

You can create a free account on QuickNode.com within a few clicks. Just select a plan, choose a chain, select a network, and create your endpoint. After you've created your endpoint, copy your HTTP Provider URL:
 
A screenshot of the Quicknode Ethereum endpoint on the Getting Started page with an HTTP link and WSS


You'll need this later, so copy and save it.

Setting up MetaMask with a custom provider

Download the MetaMask browser extension if you haven’t already. Make an account and keep your seed phrase safe. 

Step 1: Open MetaMask, click on the network menu on top, and select “Custom RPC”


Step 2: Enter the network name (It can be any name of your choice; I’m using QuickNode in this example), paste your QuickNode endpoint URL in the second field that says “New RPC URL". Enter the “Chain ID”, which is also known as the network id (1 in this case as we are using an Ethereum Mainnet endpoint), and click on save.


Now you’ll be able to see your node under the available networks in your MetaMask wallet. 


Listed below are the Chain / Network IDs for various EVM based networks:

  • Ethereum Mainnet: 1
  • Ethereum Testnet Rinkeby: 4
  • Ethereum Testnet Kovan: 42
  • Ethereum Testnet Ropsten: 3
  • Ethereum Testnet Görli: 5
  • xDAI Chain: 100
  • Binance Smart Chain Mainnet: 56
  • Polygon/Matic Mainnet: 137
  • Optimistic Ethereum: 10

A list of all the commonly used chains can be found here.

Conclusion

Now we’ve successfully added QuickNode as the custom RPC provider in the MetaMask wallet. It is always a good idea to have a custom network added to your MetaMask for faster transactions or even as a backup. 

Subscribe to our newsletter for more articles and guides on Ethereum. If you have any feedback, feel free to reach out to us via Twitter. You can always chat with us on our Discord community server, featuring some of the coolest developers you’ll ever meet :)

Related articles 12

How to Setup Domain Masking on QuickNode
Published: Apr 15, 2022
Updated: Sep 9, 2022

Domain masking or URL masking is the act of disguising the actual domain name of a web resource in favor of another domain name. This article will demonstrate how to set up domain masking on...

Continue reading
Blockchain Consensus Mechanisms
Published: May 25, 2022
Updated: Sep 9, 2022

Data consistency and security are the principles that guide blockchain technology. There are different mechanisms and algorithms blockchains use to regulate their working throughout the chain...

Continue reading
Web3 Glossary
Published: Jul 20, 2022
Updated: Sep 9, 2022

Your guide to navigating the lingo of Web3. If you have any feedback or would like to submit a suggestion to this glossary, kindly 

Continue reading