April 12, 2022

How to set a custom provider in MetaMask


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.


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 :)
Ready to try QuickNode? Start your 7-day free trial

Related articles 13

Apr 12, 2022 How to setup WebHooks with QuickNode

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
Apr 7, 2022 Look up the Address Balance for a Wallet for Bitcoin on QuickNode

If you're running your own bitcoin node, there is a chance that you will want the ability to look up the balance of an address that you do not own. The first time this happens, you might create a

Continue reading
Apr 12, 2022 Look up all NFTs for a given address on an EVM based chain

If you're running your own EVM based chain, such as Ethereum, Polygon, xDAI, BSC, Fantom or Celo there is chance you will want the ability to look up all of the NFTs owned by an address on those chains. The first time this happens, you might create a small script to check...

Continue reading
Apr 12, 2022 Intro to EtherFlow - Visual RPC Call Composer for EVM

Sending RPC calls to get data is a common standard most blockchains follow. EtherFlow is a tool that makes it easier to send these RPC calls. This guide will explain in depth about EtherFlow, and how it...

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

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
Apr 20, 2022 An Introduction to the Solana Account Model

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
May 3, 2022 How to Implement JSON Web Tokens (JWT) Authorization with QuickNode

Security is a crucial factor when it comes to protecting web resources. One way to protect those resources is by integrating JSON Web Tokens (JWT) in your web applications. JWT is an open standard that defines a compact way for securely transmitting information between...

Continue reading
Jan 21, 2022 How to Build an NFT Gallery on Solana Using QuickNode's NFT-API

Hello readers! In this tutorial we will be building out a small application that allows you to get all of the NFTs of a particular Solana wallet, and display all of the information from them on the web page. To build this out we are going to use the

Continue reading
Apr 12, 2022 How to Resolve ENS Domains Using JavaScript and QuickNode

ENS is the leading naming system based on Ethereum; it maps Ethereum addresses to tangible names. Today in this guide, we will learn more about ENS and How to resolve ENS domains using JavaScript library ethers.js and...

Continue reading
Apr 12, 2022 How to enable gzip on RPC calls in JavaScript using ethers.js

HTTP responses from blockchain methods can contain a vast amount of data and take a lot of time to receive at the client's end; compressing that data before it is being served and decompressing on the client can save a lot of time. One such compression technique is gzip...

Continue reading
Apr 12, 2022 Pending and Queued Transactions Explained

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
Apr 12, 2022 What are Ethereum Transactions?

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
Apr 15, 2022 How to Setup Domain Masking on QuickNode

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 an Ethereum node with...

Continue reading