Author BioMatthew Finestone leads Business Development at Loopring, a zkRollup-based layer 2 solution building an exchange and payment protocol.
High gas fees suck
Here’s how you can save tons on gas fees by using Loopring.
Loopring is an Ethereum
zkRollup protocol: a secure layer 2 scaling solution. The protocol allows users to transact without gas cost and without delay while still enjoying the full self-custodial security of Ethereum.
There’s crazy demand for Ethereum block space these days, and users have no qualms about bidding up the price of this valuable ‘digital real estate’—paying high gas fees to get their transactions included.
While this is a bullish indicator for Ethereum and the value it’s able to provide, it also renders the network unusable for those who can’t afford paying tons of ETH in gas fees. And as Bankless readers know, Ethereum is the foundation of a new, open digital economy and nation—it can’t be precluding and pricing out the everyday people!
In this tactic, you will learn how to avoid the high gas fees on Ethereum so you can trade, transfer, and even provide liquidity for minimal costs on Loopring’s zkRollup.
Let’s get into it.
- Goal: Learn how to use Loopring’s zkRollup
- Skill: Beginner
- Effort: 10 mins
- ROI: High & variable. Think about all the fees you’ve spent trading on Uniswap!
How to trade tokens with no gas fees
A Brief Synopsis on Loopring L2
Loopring’s Layer 2 is a place where people can enjoy Ethereum by circumventing the biggest downside facing the network today:
brutally high gas costs.
In addition to the open source protocol, Loopring also builds products on top of the L2 protocol. This includes an
AMM and orderbook DEX, and a mobile
smart wallet with a zkRollup baked-in. In both cases, you feel like you’re using any normal application in terms of speed and low (or zero) fees, but you are on the Ethereum blockchain—global, secure, and powerful.
It pains us to see users being priced out from transacting on Ethereum due to $90 swap fees, $30 transfer fees, and beyond. And if they do pony up these prices, it still pains us to see these folks parting with their precious ETH. There’s a tutorial below on how you can use Loopring in various ways. But first, let’s get you up to speed on
zkRollups.
zkRollups in a Nutshell
zkRollups work by placing the ‘state’ and activity off-chain, in a data structure called a Merkle tree. You can think of this as an off-chain database.
Loopring users first deposit assets on-chain into an Ethereum smart contract, which is then represented in said Merkle tree. Once you do this, you’re assets are recorded and represented in the off-chain world. Anyone can make trades, transfers, etc. by signing transactions using their own mainnet Ethereum address. But you get to do this without paying for gas fees, since it’s all off-chain!
When a lot of activity has happened, say 750 trades and 250 transfers for example, something known as the operator (a.k.a relayer) aggregates and compresses all these transactions, and using cryptographic techniques known as Zero Knowledge proofs.
These are verifiable proofs that all of the off-chain computations happened according to the protocol rules (which are open for anyone to see). By putting this succinct ‘validity proof’ and some tidbits of data on Ethereum, a zkRollup inherits Ethereum security guarantees, but is able to process much higher throughput.
An appropriate analogy would be: instead of everyone taking their cars on a congested highway (wasting time and gas), they get on a high-speed train that moves around unencumbered by the traffic below. Passengers save money by only paying a very small fee to the train rather than filling up their car with a full tank of gas, and actually get to their destination much faster (more like instantly) since they didn’t wait in traffic.
The important thing to remember is that a zkRollup relies only on Ethereum and Zero Knowledge cryptography for its security. You do not need to trust anyone or anything else. As long as Ethereum exists, you can always withdraw your funds from the rollup.
⚠️ If you want to learn more about zkRollups, check out the Bankless State of the Nation with Loopring. You can also read Vitalik’s recent blog post about rollups for a more technical explanation.Alright now that we have our bases covered, let’s walkthrough how we can use Loopring to save on gas.
Going gasless with Loopring
You can currently access by going to
Loopring Exchange on a web browser, or through the
Loopring smart wallet on mobile (currently available for Android only).
We’ll focus on the web today, but note that all the L2 tactics you learn here can be applied to your Loopring wallet as well. If you’re more technical, everything you see below can also be done via our relayer
API.
You’re on the future of Ethereum!
Congratulations! You are now at the cutting edge of Ethereum.
Layer 2 is becoming an effective alternative for active Ethereum users. We wouldn’t be surprised if this is where the future of Ethereum lies (along with Eth2). You may have even noticed that shift is already happening.
2021 feels like it could be a great year for Layer 2s. Generally speaking, we’re hoping that Layer 2’s like Loopring and Optimism support a significant amount of economic activity on Ethereum.
If you completed much of this tactic, then you are ahead of the pack in seeing what the future of finance looks like. It’s still bankless. And it’s still on Ethereum.
The difference is that it’s instant and you’re savings lots of gas money. If you’re an Android user, you can check out the mobile smart wallet and have the power of L2 Ethereum in your pocket.
Banks don’t stand a chance.
Action steps
Source:
Bankless