Basics
Introduction to Blockchain Networks
A beginner-friendly introduction to blockchain networks: what they are, how they work, different types of blockchains, and why they matter for DeFi lending and crypto borrowing.
Learn what Layer 2 networks are, how rollups and other scaling solutions work, why they matter for DeFi lending, and how Borrow by Sats Terminal uses L2s to offer cheaper Bitcoin-backed borrowing.
Ethereum, the most widely used blockchain for DeFi applications, can process roughly 15-30 transactions per second. Compare that to Visa's capacity of over 65,000 transactions per second, and the bottleneck becomes clear.
When demand for Ethereum block space exceeds supply, gas fees spike. During peak periods like the 2021 DeFi summer or popular NFT mints, simple transactions could cost $50-200 or more. For DeFi lending, where a single borrowing action might involve multiple transactions (approval, deposit, borrow), the total gas cost could easily reach hundreds of dollars.
This pricing made DeFi lending impractical for smaller loan amounts. If you wanted to borrow $500 against your Bitcoin, paying $150 in gas fees meant losing 30% of your loan value to transaction costs before even accounting for interest.
Layer 2 networks emerged as the solution to this scaling problem, and they have fundamentally changed the economics of DeFi lending.
A Layer 2 (L2) network is a separate blockchain that sits on top of a Layer 1 (L1) blockchain like Ethereum. It handles transaction processing on its own chain but posts transaction data or proofs back to the Layer 1 for security.
Think of it like this: Layer 1 is a heavily secured courthouse where every transaction gets a full trial. Layer 2 is a magistrate's office that handles routine cases efficiently, only sending summaries to the courthouse for final recording.
The key insight is that most blockchain operations do not need the full security and decentralization of the main chain for every step. By moving execution to a cheaper layer and only using the expensive main chain for security verification and data availability, L2s can dramatically reduce costs while maintaining strong security guarantees.
Layer 1 blockchains like Ethereum provide:
Layer 2 networks inherit these properties from their parent L1 while adding:
There are several approaches to building Layer 2 networks, but the most successful and widely adopted are rollups.
Rollups work by executing transactions on the L2 chain, then "rolling up" batches of transactions and posting compressed data back to the L1. This compressed data, combined with some form of validity verification, ensures that the L1 can always reconstruct the full state of the L2 if needed.
The name "rollup" comes from this bundling process: many L2 transactions are rolled up into a single L1 transaction, splitting the L1 gas cost across all of them. If a rollup posts a batch containing 1,000 transactions to Ethereum, each individual transaction effectively pays only 1/1000th of the L1 posting cost.
There are two main types of rollups, and they differ in how they verify transaction validity.
Optimistic rollups take an "innocent until proven guilty" approach. They assume all transactions posted to the L1 are valid and provide a challenge period (typically 7 days) during which anyone can submit a fraud proof if they detect an invalid transaction.
How they work:
Major optimistic rollups include:
Trade-offs of optimistic rollups:
ZK-rollups take the opposite approach: instead of assuming validity and allowing challenges, they use zero-knowledge cryptographic proofs to mathematically prove that every batch of transactions is valid before posting to the L1.
How they work:
Major zk-rollups include:
Trade-offs of zk-rollups:
Layer 2 networks have transformed DeFi lending by making it economically viable for a much broader range of users and loan sizes.
The most immediate benefit is dramatically lower transaction costs. Consider the typical steps in a DeFi borrowing transaction:
On Ethereum L1, each of these steps could cost $10-50+ in gas fees, potentially totaling $100-300 for a complete borrowing cycle. On a Layer 2 like Arbitrum, the same transactions might cost $0.10-1.00 each, totaling under $5 for the complete cycle.
This cost reduction makes DeFi lending practical for smaller loans. A $1,000 Bitcoin-backed loan that would have been uneconomical on L1 (due to $200 in gas costs) becomes perfectly viable on an L2 (with $3-5 in total gas costs).
Layer 2 transactions typically confirm in 1-4 seconds, compared to 12-15 seconds on Ethereum L1 (and potentially longer during congestion). This faster confirmation creates a smoother user experience when depositing collateral, adjusting positions, or repaying loans.
Major lending protocols have deployed across multiple L2 networks. Aave operates on Arbitrum, Optimism, Base, and others. Compound has deployed its V3 on multiple L2s. Morpho and other protocols are following suit.
This multi-chain deployment creates competition for users, often resulting in better rates and incentives on L2 deployments. Some protocols offer temporarily boosted yields or reduced fees to attract liquidity to their L2 markets.
A common concern about L2s is whether they compromise security. The answer is nuanced but generally reassuring:
Borrow by Sats Terminal was built with L2 networks as a first-class consideration. As a lending aggregator, Borrow searches across protocols on multiple networks to find the best rates and lowest total costs for your Bitcoin-backed loan.
When you use Borrow to find the best borrowing terms, the platform does not just compare rates on a single network. It evaluates options across Ethereum L1 and multiple Layer 2 networks, factoring in both the interest rate and the gas costs associated with each option.
For a $5,000 loan, a slightly higher interest rate on an L2 might actually cost less total than a lower rate on L1, once gas fees are factored in. Borrow's aggregation engine handles this calculation automatically.
By supporting L2 networks, Borrow makes Bitcoin-backed borrowing accessible to users with smaller collateral amounts. You do not need a large Bitcoin position to justify the transaction costs. Even modest loans become economically sensible when gas costs are measured in cents rather than dollars.
Regardless of which network processes your loan, Borrow maintains its fully non-custodial approach. Your self-custodial Privy wallet works across networks, and your assets remain under your control throughout the borrowing process. The network simply determines where the lending protocol's smart contracts execute.
With the growing number of L2 networks, understanding how to navigate the ecosystem helps you make informed decisions.
To use a Layer 2 network, you first need to move your assets there. This process is called "bridging." There are several approaches:
Official rollup bridges are the most secure option. They use the rollup's native security model but can be slow (especially withdrawals from optimistic rollups, which have a 7-day challenge period).
Third-party bridges like Across, Stargate, and Hop offer faster transfers between networks. They use their own liquidity pools and security models, which introduces additional trust assumptions but provides a much faster experience (usually minutes rather than days).
CEX withdrawals allow you to withdraw funds from a centralized exchange directly to an L2 network, bypassing the need for a separate bridging transaction entirely.
When selecting which L2 to use for DeFi lending, consider:
Aggregators like Borrow simplify this decision by searching across networks automatically and presenting you with the best options regardless of which L2 they are on.
The L2 landscape is evolving rapidly, with several trends shaping its future.
Most current L2s rely on centralized sequencers. Projects like Espresso, Astria, and the rollups themselves are developing shared and decentralized sequencer solutions that will further reduce trust requirements.
Interoperability between L2 networks is improving. Standards like ERC-7683 and cross-chain messaging protocols are making it easier to move assets and execute transactions across multiple L2s without manual bridging.
Ethereum's EIP-4844 (Proto-Danksharding) introduced "blob" transactions that significantly reduced the cost for rollups to post data to L1. Future upgrades (full Danksharding) will reduce these costs even further, potentially by another order of magnitude.
Some projects are building L2s optimized for specific use cases. A lending-focused L2 could optimize its execution environment for the specific transaction patterns of lending protocols, further improving efficiency.
If you are new to L2 networks, these tips will help you get started safely.
Begin with well-established L2s like Arbitrum, Optimism, or Base. These have the deepest liquidity, most established DeFi ecosystems, and longest track records.
Even on L2 networks, you need ETH to pay for gas (just much less of it). Make sure your L2 wallet has a small ETH balance for transaction fees. A few dollars worth is usually sufficient for many transactions.
When interacting with DeFi protocols on L2, ensure you are using the correct contract addresses for that specific network. Protocol addresses differ between L1 and each L2. Use official protocol documentation or trusted aggregators to avoid phishing contracts.
If you are using an optimistic rollup, be aware that official bridge withdrawals to L1 take approximately 7 days. Plan accordingly, or use a fast bridge service if you need quicker access to L1 funds.
Platforms like Borrow by Sats Terminal handle the complexity of multi-network comparison for you. Instead of manually checking rates and gas costs across multiple L2s, let the aggregator find the best option automatically.
Layer 2 networks solve blockchain's scalability challenge by processing transactions on a separate chain while using the main chain (Ethereum) for security and settlement. The two main types, optimistic rollups and zk-rollups, each take a different approach to verifying transaction validity but both dramatically reduce costs and increase speed.
For DeFi lending, L2s have been transformative. They reduce gas fees by 10-100x, making Bitcoin-backed borrowing economically viable for any loan size. Major lending protocols are deployed across multiple L2 networks, creating competition that benefits borrowers through better rates and lower costs.
Borrow by Sats Terminal leverages this multi-network landscape by aggregating lending protocols across L1 and L2 networks simultaneously. This means you can find the best borrowing terms without worrying about which network offers the optimal combination of rate, liquidity, and transaction cost. Combined with its self-custodial wallet and no-KYC approach, Borrow makes L2-powered DeFi lending accessible to every Bitcoin holder.
Related Guides
Basics
A beginner-friendly introduction to blockchain networks: what they are, how they work, different types of blockchains, and why they matter for DeFi lending and crypto borrowing.
Basics
Learn what gas fees are, why they fluctuate, how they differ across blockchains like Ethereum and Layer 2 networks, and how Borrow by Sats Terminal helps you manage transaction costs when borrowing against Bitcoin.
Common Questions
A Layer 2 (L2) network is a secondary blockchain that runs on top of a main blockchain (Layer 1) like Ethereum. It processes transactions off the main chain but periodically settles them back to Layer 1 for security. This allows for faster, cheaper transactions while inheriting the security guarantees of the underlying Layer 1 network.