Home >web3.0 >Teach you step by step how to create your own Rollup in 2 minutes

Teach you step by step how to create your own Rollup in 2 minutes

WBOY
WBOYforward
2024-04-03 11:01:04985browse

Abstract of this article:

  • Rollup as a Service (RaaS) is a new business model that allows anyone to create and deploy their own L2 Rollup without coding.

  • Conduit is a highly user-friendly RaaS provider. Below, you will see how using a few clicks can execute transactions swiftly on Layer 2 Rollup with remarkable efficiency.

  • When your Rollup is active, you can bridge ETH into it and deploy smart contracts and dapps, for example, I created a token called DOG and transferred it.

  • Conduit also sets up a block explorer for you so you can easily visualize everything on-chain.

Text

We have seen the growth of Ethereum L2 because the Ethereum mainnet has become too slow and expensive. Most of these are Rollups which I discussed before.

Creating your own Rollup requires a relatively deep understanding of blockchain, but the recent growth in “Rollup as a service” (RaaS) providers means you can deploy an L2 Rollup in minutes, Without writing a single line of code!

In this article, I will briefly explore the working principle of RaaS by observing Conduit.

Rollups and RaaS

As the Ethereum protocol continues to scale to handle more transactions per second, we study EVM L2, which has been deeply explored in the past literature.

Rollup is the most popular L2 type on Ethereum today. As a brief reminder, Rollup is a separate blockchain that performs transactions and then publishes the Rollup version back to the main chain.

There are hundreds of examples of L2 Rollups, as shown in the figure below.

Teach you step by step how to create your own Rollup in 2 minutes

However, despite the emergence of chains such as Optimism and Arbitrum that have created their own toolkits to create L2 faster, creating your own L2 is still not a It's a small thing and requires some technical knowledge. Additionally, you need to run nodes to support L2, which can also get complicated.

This challenge has given rise to a new type of business, namely providing "Rollup as a Service" (RaaS). With RaaS, anyone can create and deploy their own Rollup in minutes by pressing a few buttons and start bridging ETH and running smart contracts and dapps on their own L2!

Below I will show you how easy it is to create a Rollup using RaaS.

Conduit

There are already many competitors in the RaaS field, including Astria, Caldera, AltLayer, Conduit, etc.

For this article, I chose to use Conduit, which I found to be very fast and easy to get started with.

According to them, Conduit allows you to: "Deploy a Rollup in minutes, not months." Offering "fully managed, production-grade, customizable Ethereum, Optimism, Arbitrum, Base , Mode and Zora's Rollup."

Teach you step by step how to create your own Rollup in 2 minutes

#Their landing page shows very clearly how fast and easy it is to create a Rollup using Conduit.

Teach you step by step how to create your own Rollup in 2 minutes

Let’s find out in the following steps.

Create a Rollup

First, select the Deploy button on the landing page, you will be asked to create an account and organization, and then immediately taken to the setup page to deploy your first Rollup .

Teach you step by step how to create your own Rollup in 2 minutes

Using Conduit to create a mainnet rollup will cost $3,000 per month. Whether you need a mainnet rollup or not, you can still use a testnet rollup to get started. It only costs $3,000 per month. $50.

Conduit allows you to use Optimism's OP stack or Arbitrum's Orbit stack. If you select Orbit, you'll find that the subsequent options change accordingly.

Teach you step by step how to create your own Rollup in 2 minutes

The settlement layer is the layer that guarantees the finality and security of transactions, while the data availability layer is the maintainer of the information needed to reconstruct the Rollup at any given moment.

Both are important, but as a simplified solution, settlement should really be on a more decentralized blockchain like Ethereum, with the highest financial security, while data availability can On a more centralized blockchain like Celestia, the blockchain supports storing more data at a lower cost.

In my testnet example, I stuck with the OP stack, using Ethereum as the settlement layer and Celestia as the DA. Nonetheless, Conduit allows you to mix and match these to find what works best for your specific use case.

When you continue, you will be asked to pay a monthly fee of $50.

Teach you step by step how to create your own Rollup in 2 minutes

Once payment is completed, you are done! Within minutes, you have configured your first L2 Rollup.

You now only need to wait 15-20 minutes for Conduit to set everything up, and once complete, the deployment will appear as follows:

Teach you step by step how to create your own Rollup in 2 minutes

Your organization and The name of the Rollup can be edited. You can now start using your new L2 Rollup!

Start using your Rollup

After selecting your Rollup on the deployment page, the Rollup information will be displayed as follows:

Teach you step by step how to create your own Rollup in 2 minutes

Rollup Configuration Settings Shown on the right, the output in the black terminal box indicates that L2 is running. At the moment you don't really need to understand what the output means, all you need to see is that it updates continuously.

You need to select "Add to Wallet" to add the network to your Metamask or equivalent wallet.

Teach you step by step how to create your own Rollup in 2 minutes

Then, you should click "Create Bridge" in the bridge section, which will open a bridge software called SuperBridge.

Teach you step by step how to create your own Rollup in 2 minutes

Since we are on the test network, you will be able to bridge Sepolia ETH onto your new Rollup. If you don't have any Sepolia ETH, you can get it from this faucet.

I bridged more than a few times 1 ETH and ended up with 2 testnet ETH on my new L2 Rollup, visible on my Metamask wallet!

Teach you step by step how to create your own Rollup in 2 minutes

Now you have the test Network ETH is bridged to your new Rollup and you can start using it!

Further Use of Your Rollup

Now you have your own L2 Rollup that you can deploy code directly into .

First open the Remix IDE, I have explained how to use it in my tutorial called "Writing Your First Smart Contract".

Then copy the code below into a new file in Remix.

Teach you step by step how to create your own Rollup in 2 minutes

Update the environment to "Injected Provider" and set your Metamask to the new Rollup. Next to the orange deploy button give Your token name and symbol, in this case I wrote "Dog, DOG" and click deploy.

Teach you step by step how to create your own Rollup in 2 minutes

You will need to sign this in Metamask transaction, when the transaction is processed, you will have just created a new token on your new L2 Rollup, which is cool!

If I open Metamask, I can copy the contract address created in Remix Add the token to my wallet.

Teach you step by step how to create your own Rollup in 2 minutes

After doing this, I can see that my new Dog token has a balance of 100000 DOG. In Metamask, I can send 100 DOG to another address on the network.

Teach you step by step how to create your own Rollup in 2 minutes

How amazing, not only did we just create our own Rollup, we also created it on this new blockchain We get our own Dog tokens and send them to another account on this new chain.

Integration

As you can see, you can Do anything you want on the chain, such as creating your own tokens, smart contracts and dapps.

You can have everything from simple tokens to complex AMMs like Sushiswap running on your Rollup, as We see it running the same on several chains.

Teach you step by step how to create your own Rollup in 2 minutes

For this kind of integration with different projects, Conduit has an integration page to help you deploy these applications onto your new Rollup.

Teach you step by step how to create your own Rollup in 2 minutes

When you select "Get" on any dapp on this page, a type form will pop up where you can explain why you want to integrate this dapp with your Rollup.

Having such a simple interface to communicate with one of dozens of the most popular dapps is a very helpful thing when starting a brand new Rollup.

When you are satisfied with everything you have tested, you can migrate the Rollup to the mainnet. However, the upgrade costs $3,000 per month, and you'll need to schedule a demo with Conduit for it to work.

Teach you step by step how to create your own Rollup in 2 minutes

Confirm what we did on Explorer

After trying out my new testnet Rollup, I was able to do this for you by jumping into Conduit too Set up a block explorer to confirm everything that happened.

For example, I can go back to the browser and view my address to see completed transactions and the coins I own.

Teach you step by step how to create your own Rollup in 2 minutes

I can get more specific by selecting the blockchain tab on the left and clicking on an option like "Deposits (L1->L2)" Information about the blockchain, in this case you can see my bridged Sepolia ETH.

Teach you step by step how to create your own Rollup in 2 minutes

After selecting the token, I can also see the new DOG token I deployed.

Teach you step by step how to create your own Rollup in 2 minutes

We can dig deeper into this token and see that there are two holders since I sent 100 DOG to another account on the network.

Teach you step by step how to create your own Rollup in 2 minutes

I believe it's obvious that I've only scratched the surface of what it's possible to have your own new Rollup. In future posts I may delve into different use cases.

What’s most fascinating is that since it has become so easy to create Rollups using RaaS, L2 is likely to become ubiquitous and there will be hundreds or thousands of them.

So, the real question will be how to distinguish your L2 Rollup from other Rollups?

The above is the detailed content of Teach you step by step how to create your own Rollup in 2 minutes. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete