Force One Blockchain Network on Web3 App

Shmoji
5 min readJun 9, 2022

A common pattern in web3 apps is to force the user to only have access to your website when they are on the correct blockchain network. Otherwise, the app doesn’t work. If the developer created the app environment to work for the Ethereum Mainnet network, then it won’t work on Ethereum testnet.

Technically, you could write code to handle both networks at the same time, but that doesn’t make…

--

--