Unlock Guides

Back

How To Choose a Network For Your Smart Contract Deployment

The Unlock Protocol currently supports more than 12 networks. We are constantly adding new ones, and you can even suggest new networks the protocol should support. Because of this wide variety, we only show a subset of these networks by default on the Unlock Dashboard UI, in order to not provide an overwhelming list of options.

If the network you wish to deploy on is supported by Unlock but it is not currently showing in the default list, you can make it appear in the list by connecting your wallet to the network you want to deploy on. Once your wallet is connected to that network, the network should appear on the list.

My wallet is connected to the Base network, so it is automatically selected by default!

With all of these options, which network should you choose to deploy on? In the end, choosing a network is your decision. It should be based on where you think your community will already have familiarity, and perhaps take into account business relationships with other players, such as the teams building these networks, or business relationships in related parts of a network ecosystem.

That said, in general, we typically discourage people from deploying their contracts on Ethereum Mainnet itself. The gas costs on Mainnet are high (often multiple $ or even tens of $ of gas per transaction) and they will remain high. This is a good sign for the overall ecosystem, as it means there is demand and competition for the scarce block space on Mainnet itself.

For deploying smart contracts, we generally recommend using an L2, such as Optimism, Arbitrum or Base. They have different characteristics, but the all “inherit” from the Ethereum Mainnet security — at a fraction of the cost. In most cases, it should cost no more than a few cents to deploy your contract or for your members to purchase and mint their keys/memberships.

We generally try to support all the Unlock features on all the networks, including password protection, promo codes, and credit card purchases. Similarly, our checkout, if you decide to use it, supports chain-agnostic features for your members including swap and pay and cross-chain purchases (the former means that your users don’t even have to know about the network on which your contract is deployed to make a purchase). In practice, users can pay on any network that they have assets on, and our checkout UI will offer them ability to pay there, without requiring them to bridge or transfer any tokens.

Was this article helpful?
YesNo

Table of Contents