Connect Users to Layer 2 Networks with the MetaMask Custom Networks API
Today the fundamentals of Ethereum are stronger than ever. 1.3 million transactions settle more than $12 billion daily. 74% of all stablecoins are issued on Ethereum, worth $30 billion. More than 5 million unique NFTs have been bought and sold for over $300 million. Amidst the burgeoning demand to access liquidity and activity on Ethereum, the network is straining under the weight of its own success. Moving more computation to Layer 2 networks is the best immediate solution to Ethereum’s high gas fees, and a number of such networks are already live. What’s missing is a simple user interface for switching between Mainnet and the various Layer 2 networks that an application might require.
Our new Custom Networks API is our latest step on the way to seamless cross-chain user experiences in MetaMask. It allows developers to recommend a variety of chains to their users, including Layer 2 networks like Polygon (formerly Matic), Arbitrum, and Optimism; sidechains like SKALE and xDAI; and indeed any EVM-compatible chain, including enterprise networks and testnets. These networks are then added to the user’s network menu with a simple confirmation, and the user is able to switch between networks using the familiar network switching menu.
We are excited to support the growth of Layer 2 networks, and look forward to seeing what the Ethereum community will build with cheaper and faster transactions. Even so, keep in mind that not all networks are created equally, and they make different trade-offs in order to scale. Be sure to understand the security and reliability tradeoffs of any network you add to MetaMask, and ensure that you trust the site recommending a new network. We encourage all users to read our guide to using custom networks in MetaMask.
Connect Users to Layer 2 networks with the MetaMask Custom Networks API was originally published in MetaMask on Medium, where people are continuing the conversation by highlighting and responding to this story.