banner
exodus

exodus

Web3 Enthusiast & Content Creator
tg_channel

Linea L2 Testnet Guide

image

What is Linea?#

Linea is a Layer 2 (Layer 2) zk aggregation that allows developers to build scalable dApps on the Ethereum network and also migrate over existing projects without the need to rewrite smart contracts.

Linea launched its first Private Beta Testnet under the name ConsenSys on January 9, 2023. On March 28, 2023, the name ConsenSys was changed and the Public Beta Testnet was announced as Linea.
image

So far (March 28 - April 6, 2023) on Public Beta Testnet, 3.1 million transactions have been made with 387.000 different wallets. The number of contracts distributed is 73.000 (Contract Deploy)
image

Testnet Stages#

1- Hop Bridge & Liquidity
2- Mes Protocol Trade
3- Contract Deploy

Add Linea Goerli Testnet to Wallets#

We will carry out our transactions on Goerli - Linea Goerli networks. First of all, let's add Linea Goerli network to our wallet. Let's choose the networks section from our Metamask wallet, let's choose Linea Goerli Test Network from the lower test networks in the drop-down list.
image

To manually add Linea Goerli Test net to different wallets;
Network name: Linea Goerli test network
New RPC URL: https://rpc.goerli.linea.build
Chain ID: 59140
Currency Symbol: LineaETH
Block Explorer URL: https://explorer.goerli.linea.build

How to get Goerli ETH Test Token?
Paste your wallet address in the box that says Send Me Eth on the site whose link I have shared below and request 0.05 Eth (goerli test token) by completing the captcha bot verification.
You can repeat this process every 24 hours.
https://goerlifaucet.com
Alternative Faucet 👇👇
https://goerli-faucet.pk910.de
image

Testnet Stages#

1- Hop Bridge & Liquidity
https://goerli.hop.exchange/#/send?token=ETH&sourceNetwork=ethereum&destNetwork=linea

Bridge
Let's log in to the site and connect our wallet on the Goerli network. Let's choose ETH on the tab that says Send at the top and enter the amount of Eth we will send to the Linea Goerli Test network.
From Network(From): Goerli
Receiver network(To): Linea Goerli Test
Let's press the Send button at the bottom and complete the transaction by giving the wallet approval. (fee is very high, be careful)
image

Let's select Faucet from the top tab and select USDC and click the Mint USDC button. Let's choose Send from the top tab again and send a certain amount of USDC from the Goerli network to the Linea Goerli Test network.
image

image

You can also use the networks shown below for Eth Bridge.
Linea Goerli Testnet ➡️ Base Goerli Testnet
Base Goerli Testnet ➡️ Linea Goerli Testnet
Linea Goerli Testnet ➡️ Goerli

image

Add Liquidity
Let's choose Convert from the top tab. Click here to wrap or unwrap ETH tab.
image
Let's enter some Eth and click on the wrap tab at the bottom. During the wallet approval, it will ask you to change the network (Linea Goerli Test Network). Let's change the network and confirm the transaction from our wallet.
image
At the bottom of the same page are the WETH and hETH boxes. Let's enter an equal amount of Eth and give the wallet approval by clicking the Approve tab. Let's confirm the wallet again by clicking the Convert button at the bottom of the same screen. WETH and hETH we need are ready to add liquidity.
image
Now we select pool from the top tab. From the drop-down list page, we find ETH Linea Pool and click on the tab that says Add Liquidity on the right. On the Deposit page that opens, we enter equal amounts of WETH-hETH and click the Preview button. After the deposit and wallet approve, we complete our transactions.
image
image
image

2- Mes Protocol Trade
https://app.mesprotocol.com/spot/ETH-USDC
Let's visit the Mes Protocol site, the link of which I shared above. While our wallet is on the Linea Goerli Testnet, let's connect our wallet to the site and click Faucet from the top tabs and get USDC.
image

Deposit

Let's change the Cross-Rollup Mode in the upper right tab to Single Chain Mode. Let's select the Deposit/Withdraw tab that appears just below this tab. Let's deposit some of the Usdc in our wallet by selecting the USDC Vault tab. (Deposit process sometimes takes a long time)
image

Trade

Select the Trade tab, click the Buy button to buy Eth, and the Sell button to sell Eth. To sell Eth, don't forget to deposit Eth!!! Let's get some eth with the Usdc we deposited. You can choose one of the Market/Limit options from the Order Type section in the lower tab. We select the Market tab to perform the transaction immediately. We need to buy/sell a minimum of 12 USDC. Let's set the percentage rate shown below, set the amount we want to buy and press the Place Market Buy button. We complete the transaction by giving the wallet approve.
image
image

Withdraw

Let's select the Deposit/Withdraw tab that appears just below the Single Chain Mode tab. Let's choose any of the ETH Vault/Usdc Vaults we want to withdraw. Let's enter the amount we want to withdraw, click the Withdraw button and complete the transaction by giving the wallet approve.
image

3- Contract Deploy
https://docs.openzeppelin.com/contracts/4.x/wizard

Let's create an ERC-20 token contract on the Linea Goerli Testnet.
Let's log in to the site. As seen in the bottom picture, let's determine the token name-token symbol (abbreviation**)-token number** and click the Open in Remix tab in the upper right tab.
image
In the new page that opens, let's confirm by clicking the Compile tab on the left. When a green tick appears on the Compile logo, which is in the 3rd row on the left, this stage of our process is completed.
image
Let's click on the Eth logo that appears in the 4th row on the left (DEPLOY & RUN TRANSACTIONS). Let's click on the ENVIRONMENT tab just below this title.
Let's approve the wallet by clicking the Injected Provider-Metamask option from the drop-down list (Our wallet is on the Linea Goerli Testnet Network)
After this confirmation, let's give the wallet approve by pressing the Deploy button that appears at the bottom.
image
image

Token name and contract address will appear at the bottom left of the page. Let's click on the copy tab on the right and add the token contract to our wallet.
image
image
Let's click the triangle at the beginning of the tab with our token name and contract address, select the transfer button. Let's enter our wallet address and the amount of tokens we want to send in the relevant boxes and press the transact button. After giving the wallet approve, our transactions are completed.
You can transfer these tokens to your friends' wallets or add liquidity to AMM projects and swap them for future testing purposes.
image
image
image
image

AWARENESS#

Our friends who participated in the ConsenSys Private Beta Testnet added a ConsenSys API Key (RPC) to their wallets and performed the testnet with this API Key. They can try the same application on the Linea Public Beta Testnet.

I recommend you to alternately use the normal Linea Goerli and the Linea Goerli networks to which Your RPC is attached, for the transactions you will make on the Linea Public Beta Tesnet.

Thank you very much for reading patiently. I wish you the best of luck❤️❤️❤️

WΞB2 ⛓

https://twitter.com/torlak78

WΞB3 ⛓

https://crossbell.io/@exodus-exodus

https://link3.to/exodus

https://bsky.app/profile/exodus

https://www.lensfrens.xyz/exodus-exodus.lens

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.