How to set a custom provider in MetaMask

April 12, 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.

Booting our own node

You can grab a free trial endpoint from QuickNode within a few clicks. Just select a plan, choose a chain, select a network, and create your node. After you've created your free trial 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 18

How to setup WebHooks with QuickNode
Apr 12, 2022

In this article, we'll learn about WebHooks and how we can set-up WebHooks with QuickNode.What are WebHooks?Everything we do on the internet can be marked/considered as events and as the internet grows, these events grow in...

Continue reading
How to Set Up Multi-Token Authentication on QuickNode
Jun 20, 2022

Security is an important part of developing a resilient Web3 application. If the security of your blockchain infrastructure is compromised, it can lead to downtime for your users. We here at QuickNode recently released a new update to our security features available on...

Continue reading
How to setup referrer whitelist with QuickNode
Apr 12, 2022

Security is one of the most significant aspects when developing an application. If a resource like a node falls into the hands of an unauthorized individual, it can exhaust your limits and resources. In this guide, we will see how to avoid this and learn how to set up a...

Continue reading
An Introduction to the Solana Account Model
Apr 20, 2022

The Solana account model is a critical part of the Solana ecosystem and can be one the hardest concepts for developers, especially ones transitioning from other blockchains, to understand. To work on the Solana blockchain efficiently, a...

Continue reading
Pending and Queued Transactions Explained
Apr 12, 2022

The Ethereum network processes over one million transactions a day. These transactions originate from users wanting to transfer Ether or interact with smart contracts. In this guide, we will teach you about the Pending and Queued state of transactions on the Ethereum...

Continue reading
What are Ethereum Transactions?
Apr 12, 2022

Transactions in Ethereum are cryptographically signed data messages that contain a set of instructions. These instructions can interpret to sending Ether from one Ethereum account to another or interacting with a smart contract deployed on the blockchain. Transactions are...

Continue reading
Blockchain Consensus Mechanisms
May 31, 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 to achieve this. In this guide, we will learn about the various blockchain...

Continue reading