Switch the website to: 繁體中文 English (Powered By : ChatGPT)

How to Use Scroll zkEVM

03-04 15:00
The popular science
Reading this article requires 8 minutes
Translate this text into 繁體中文简体中文 (Powered By : ChatGPT)
Abstract is generated ChatGPT produce
Scroll zkEVM has launched an alpha test network.
原文标题:《 Getting started with Scroll zkEVM 》

Original article by Gaurang (GT) Torvekar
MarsBit


This article is designed to show you how to interact with L2 Dapps for beginners.


In this guide, I'll discuss how to get started using Scroll zkEVM and how to interact with Ethereum L2 Dapp. In theory, the skills learned in this guide can be transferred to any other 2-tier network. In this article, I'll use the Dapp I created to illustrate. It is an on-chain TicTacToe game that can be played on Scroll L2 networks.


Preparation - Install Metamask (or any similar wallet)


If you already have Metamask installed, you can skip this step. If not, please visit https://metamask.io/download/ and based on your browser or mobile device to install the appropriate version.


scroll


The first step -- build Scroll L2 test network and Goerli test network


At present, Scroll zkEVM has launched an alpha test network. This is a layer 2 network that is compatible with the Ethereum Virtual Machine (EVM). This means that any smart contract written on the Ethereum network can be deployed locally on Scroll zkEVM using the same set of tools. Scroll L2 alpha testnet is currently "connected" to the Goerli test network on Ethereum L1. This means that the Scroll L2 network sends a batch of transactions to the Goerli L1 network to "finalize" the transaction. So, in the end, they still rely on the "security" of the Ethereum L1 network, but achieve scalability because not every transaction needs to be published on the Ethereum network.


You can set up the Scroll L2 network by visiting https://scroll.io/alpha and following the instructions to add the network to Metamask. On this page, you should add the Goerli network to your Metamask (if you have not already done so).


scroll


Step 2 - Get some Goerli test ETH


After setting up the network in Metamask through the steps above, you must get some Goerli ETH from the tap.


You can use the following taps:


1. https://goerlifaucet.com/  -- This faucet only gives 0.2 ETH at a time, you need to sign up/log into Alchemy to get the tokens.


2. https://goerli-faucet.pk910.de/ -- This PoW (proof of work) faucet can provide more ETH because you need to keep the page open and "dig" some ETH. I like this faucet better than the first one.


3. https://faucet.paradigm.xyz/ - this faucet need your login using Twitter. It takes you a while to get 0.1 ETH, so it's not very convenient.


You can use one of the above faucets, or a combination of all three.


Once you have enough ETH, proceed to the next step.


Step 3 - "Bridge" some ETH from Goerli to Scroll L2


scroll


Now the next step is to bridge some of the ETH accumulated in step 2 above to the Scroll L2 test network. To do this, go to the bridge interface -- https: //scroll.io/alpha/bridge


Follow the instructions on the page to transfer some ETH to your address on the Scroll L2 test network.


Please note that this transaction will not be completed immediately and will take some time to transfer ETH. Once the ETH has been transferred, you can move on to the next step to try the awesome on-chain Tictactoe game!


Step 4 - Play the on-chain game Tictactoe


scroll


Check out the game at https://onchain-tictactoe.vercel.app/. Connect your wallet to this page and create a new game. Since this is a multiplayer game, you need to add friends' addresses and even your second wallet can act as a second player.


Once you've created your first game, you'll need to "select" the game from the table below before you can start playing Tictactoe on the chain.


There is also a fun element to this game! If you make a mistake in one of the moves, or don't want to lose, you can always "reset" the game.


Note -- I've open-source the code for the game. You can find it on GitHub.


Step 5 (optional) -- View the other Dapps on Scroll L2


If you want to test other Dapps and game on the Scroll, please see this page - https://ethdenver.scroll.systems/


Original link
The popular science
Learn from here
Related articles
Introduction | What are the types of Bitcoin addresses?
How many types of wallet addresses does Bitcoin have and what are their characteristics? Let's explore together in this knowledge sharing session.
05-20
科普教程
Wallet Tracking 101 Guide
Mastering wallet tracking skills to find the right wallet and easily profit.
05-19
科普教程
05-12
科普教程
Popular articles
Exclusive Interview with Kakarot: The Future Super Saiyan Invested by Vitalik.
Exclusive Interview with Kakarot: The Future Super Saiyan Invested by Vitalik.
Arthur Hayes: Don't lose heart, the bull market in the fourth quarter is coming.
Arthur Hayes: Don't lose heart, the bull market in the fourth quarter is coming.
19 Responses from He Yi: Regarding Binance Listing, IEO Rumors, and Market Share.
19 Responses from He Yi: Regarding Binance Listing, IEO Rumors, and Market Share.
Download BlockBeats App
Business
Business
Contribute
Post