Skip to main content Having trouble with a token or transaction? Try our tool, MetaMask Activity English Română 中文 (简体) Tiếng Việt Türkçe Tagalog ไทย Português (Brasil) Nederlands Bahasa Melayu 한국어 日本語 Italiano Français Español Deutsch Русский How to contact support MetaMask Learn Develop MetaMask Help Center Support for MetaMask Builders Getting started Getting started with MetaMask Direct deposit (receive) tokens to your MetaMask wallet User Guide: Secret Recovery Phrase, password, and private keys How to contact MetaMask Support What are MetaMask's official support channels? How to check the status of an open Support ticket Learn the basics of blockchains and Ethereum (miners and validators, gas, cryptocurrencies and NFTs, block explorer, networks, etc.) How does MetaMask connect to a blockchain network? MetaMask is a self-custodial wallet The Ethereum address format and why it matters when using MetaMask What is a browser extension, and why is MetaMask one? What is a signature in MetaMask? What is MetaMask Flask, and how is it different from normal MetaMask? How to use the MetaMask Mobile Browser How can I get my weekly ETH purchase limit raised? Managing my tokens Managing my wallet MetaMask Activity MetaMask Portfolio MetaMask Snaps Network profiles Networks and sidechains NFTs Privacy and security Third-party platforms and dapps Token swaps Transactions and gas Troubleshooting MetaMask Help Center Getting started How does MetaMask connect to a blockchain network? On this page
How does MetaMask connect to a blockchain network?
Does this article need to be translated?
Contribute to the Help Center Submit translations, corrections, and suggestions on GitHub, or reach out on our Community forums.
GitHub Community
The Internet was originally created as a tool to share information: to pull information out of one database, transfer it remotely, and make it appear on a computer somewhere else. But, in order to do that, you need to have some sort of program to represent that data in the same way, no matter what computer you're on (and, ideally, make it a pleasant experience): and thus, browsers were born.
Public blockchains like Ethereum are the next evolution of Internet databases, and MetaMask is the next evolution of the browser. Your legacy browser doesn't have the ability to connect to this new kind of network, so MetaMask builds on top of them, pulling and pushing data to and from these public blockchain networks, with all of the interactivity we've come to expect from a Web experience built in.
Choose your own network connection
Just like pointing your browser to a URL, MetaMask needs to be pointed to what blockchain engineers call an RPC endpoint . The data transfer standard for legacy Internet traffic is HTTP ; in web3, most public blockchains use a standard called JSON-RPC . This requesting and submitting of data is done through a set of commands that programmers call an API . If someone says 'the blockchain API' or 'the blockchain endpoint', they're referring to the same thing: the place where you can send a request to the blockchain.
JSON-RPC APIs
If you want to know more about how JSON-RPC APIs work with public blockchains, take a look at MetaMask's Developer Docs , and ethereum.org's documentation .
How do you find an API endpoint?
Well, you have to have a node of the blockchain available. Each node is constantly syncing the state of the blockchain, the history of transactions on the network. It's keeping the decentralized database up to date, and you can request—from that database—information it holds. What if you don't have the ability to run a blockchain node?
That's where Infura comes in. Infura provides an instantly available, always on, scalable blockchain API which gives you data access as if you were running your own node, and so much more. Infura offers access to these nodes through API endpoints, through which wallets and applications can send JSON-RPC requests. You could think of Infura, in this way, as a gateway to blockchain data.
Scalability and privacy
Infura offers significant advantages over other blockchain API providers, especially in terms of scalability and insulation against usage spikes, but also meaningful privacy protections for users, which is why MetaMask connects to them by default.
MetaMask, though, has always been designed to be customizable. There are some blockchains that are so new, not widely adopted enough, or haven 't achieved the level of stability required for Infura to support them to their standards of service. Or perhaps you want to connect to a node you host yourself, or another local node of the blockchain. Maybe you're building your own blockchain! For this reason, users have always been able to point MetaMask to the RPC endpoint of their choice .
Run your own node
If you want to run your own Ethereum node, it's easier than you might think; learn how to get it running with our Knowledge Base article here , and get it hooked up to MetaMask following instructions here .
MetaMask's relationship to Infura
The relationship between MetaMask and Infura is a long one, and goes back to the beginnings of the ecosystem. Originally, both were projects under what is today known as Consensys Mesh, an incubator for technology built on Ethereum. The two projects were a natural fit, with MetaMask being the use case and Infura the service provider. That relationship continues now that both projects have been folded into the full stack of Web3 products offered by Consensys.
MetaMask's core vision is that of a permissionless, privacy-enabling product: rather than an Internet that commodifies you and your data, with your identity residing on someone else's server, this is an Internet that enables you; you control your data and your identity.
Beyond Infura's technical capabilities, allowing MetaMask to scale to the tens of millions of users it currently has, MetaMask chooses to ship with Infura as the default blockchain network connection provider because of their commitment to privacy and their work to progressively decentralize over time.
A JSON-RPC API provider is just like any other server or API provider, in the sense that it takes requests from a computer and serves responses. Just like a traditional server, the technical capacity exists to track IP addresses, allowing for the compilation of behavioral patterns and surveillance techniques. Infura's competitors have pursued the prominent funding model in Web2: not the provision of the service itself, but taking the user data you extract from that service, and selling the analytics of user behavior. Infura competitors have raised tremendous amounts of investment capital with the mandate that they will monetize the blockchain data itself. Infura, however, is not in the business of selling the analytics of user behavior.
You own your data
Infura shares MetaMask's core belief that users own their usage data; Infura has not and will not productize and sell usage information to third parties.
The future of network connection providers
The vision of Web3 is one of liberation and decentralization. It's possible that there will be tools developed that will take this ecosystem further along this path, breaking away from the model of service providers, toward a model of pure peer-to-peer interaction.
One way that Infura is embracing this future is through constantly expanding their offering of networks supported. Originally built for Ethereum alone, Infura now supports a number of sidechains, Layer 2 networks like Arbitrum, and even non-Ethereum Virtual Machine (EVM) compatible networks like Filecoin.
NFTs forever
Infura also offers a robust suite of tools surrounding IPFS, enabling the NFT ecosystem easy and reliable access to a persistent, decentralized metadata storage platform.
MetaMask, for their part, have built MetaMask Snaps, further enabling the customization and extensibility of Web3. Snaps allows developers to extend the functionality of MetaMask with custom features like custom blockchains, custom account types, custom messaging and notification protocols, and more, including novel technical solutions such as combining different cryptographic standards; in other words, allowing MetaMask to interact with non-EVM compatible networks.
Despite the apparent difference, at first blush, between a user-friendly front-end browser experience and a developer-focused API provider, both Infura and MetaMask are united around a core vision of building the protocols and infrastructure of the future, where users always come first.
Last updated on Dec 20, 2024 by allywhiting Previous Learn the basics of blockchains and Ethereum (miners and validators, gas, cryptocurrencies and NFTs, block explorer, networks, etc.) Next MetaMask is a self-custodial wallet Choose your own network connection JSON-RPC APIs How do you find an API endpoint? Scalability and privacy Run your own node MetaMask s relationship to Infura You own your data The future of network connection providers NFTs forever Learn Getting started MetaMask Learn Community Discord Issues Copyright © 2024 Consensys, Inc.- Connect your Ledger to Dymension (DYM) via MetaMask
- How to Set a Custom Provider in MetaMask
- A Complete Beginner's Guide to Using MetaMask
- How to pay crypto invoices using Metamask: a step-by- ...
- How to set-up MetaMask with your Ledger Nano
- Metamask setup
- Guide To Connect Coinbase Wallet and Metamask ...
- How to use MetaMask
- How to Use MetaMask with Debit and Credit Cards
- How to add any BlockChain to MetaMask
- Connect your Ledger to Dymension (DYM) via MetaMask
Click on the account icon and select Hardware Wallet. Make sure your Trezor device is plugged in and click on Connect Trezor. A Trezor Connect prompt will pop ... - How to Set a Custom Provider in MetaMask
To begin accessing decentralized applications (dApps) and cryptocurrencies, you need to install and initialize the Metamask Wallet. - A Complete Beginner's Guide to Using MetaMask
To use Metamask wallet on InvestaX, follow these steps: Set up a Metamask wallet account on Metamask web extension; Connect your Metamask wallet with InvestaX ... - How to pay crypto invoices using Metamask: a step-by- ...
The third-party wallet MetaMask lets you connect your Ledger device to their platform, so you can securely display your balances and manage ... - How to set-up MetaMask with your Ledger Nano
Open the MetaMask extension and navigate to the Settings menu. Under this menu, select “Add Network” to open MetaMask's network configuration page in a new tab. - Metamask setup
To use MetaMask with your React app, you need to install the MetaMask extension and Web3 library. If you haven't already installed MetaMask, go ... - Guide To Connect Coinbase Wallet and Metamask ...
Click 'Add network' and head to the 'Add popular networks' area (instructions here). From here, adding it to MetaMask should only take a few ... - How to use MetaMask
Step-by-step process to connect Metamask to Binance Smart Chain (BSC) · A screenshot of a MetaMask wallet home screen. · A screenshot that shows a ... - How to Use MetaMask with Debit and Credit Cards
A step-by-step guide to connecting BNB Smart Chain to MetaMask · Step 1: Open MetaMask and login · Step 2: Navigate to settings · Step 3: Select “ ... - How to add any BlockChain to MetaMask
... connect to decentralized applications through a compatible web browser ... MetaMask was created by Consensys in 2016 as MIT-licensed open source software.
Click on the account icon and select Hardware Wallet. Make sure your Trezor device is plugged in and click on Connect Trezor. A Trezor Connect prompt will pop ...
To begin accessing decentralized applications (dApps) and cryptocurrencies, you need to install and initialize the Metamask Wallet.
To use Metamask wallet on InvestaX, follow these steps: Set up a Metamask wallet account on Metamask web extension; Connect your Metamask wallet with InvestaX ...
The third-party wallet MetaMask lets you connect your Ledger device to their platform, so you can securely display your balances and manage ...
Open the MetaMask extension and navigate to the Settings menu. Under this menu, select “Add Network” to open MetaMask's network configuration page in a new tab.
To use MetaMask with your React app, you need to install the MetaMask extension and Web3 library. If you haven't already installed MetaMask, go ...
Click 'Add network' and head to the 'Add popular networks' area (instructions here). From here, adding it to MetaMask should only take a few ...
Step-by-step process to connect Metamask to Binance Smart Chain (BSC) · A screenshot of a MetaMask wallet home screen. · A screenshot that shows a ...
A step-by-step guide to connecting BNB Smart Chain to MetaMask · Step 1: Open MetaMask and login · Step 2: Navigate to settings · Step 3: Select “ ...
... connect to decentralized applications through a compatible web browser ... MetaMask was created by Consensys in 2016 as MIT-licensed open source software.