Basics
Understanding Smart Contracts for Beginners
A beginner-friendly guide to smart contracts: what they are, how they work, why they matter for DeFi lending, and how they enable trustless crypto borrowing without intermediaries.
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.
At its most basic, a blockchain is a way of recording information that makes it nearly impossible to change, hack, or cheat the system. It is a digital ledger of transactions that is duplicated and distributed across an entire network of computer systems.
To understand why this matters, consider how traditional record-keeping works. When you send money through a bank, the bank maintains a private ledger that records your transaction. You trust the bank to record it accurately, not to alter it, and to keep it secure. The bank is the single source of truth.
A blockchain eliminates the need for that trust. Instead of one institution holding the records, thousands of computers (called nodes) each maintain an identical copy of the ledger. When a new transaction occurs, it is verified by the network and added to every copy simultaneously. Changing a record would require altering it on every copy across the entire network -- a practically impossible feat.
The name comes from how data is structured. Transactions are grouped into "blocks." Each block contains:
This hash creates a chain -- each block is mathematically linked to the one before it. If someone tried to alter a transaction in block #500, it would change that block's hash, which would break the link to block #501, which would break the link to block #502, and so on. The entire chain after the altered block would become invalid, making tampering immediately detectable.
If you use Borrow by Sats Terminal to borrow stablecoins against your Bitcoin, every step of the process is recorded on a blockchain. Your collateral deposit, your loan issuance, your interest accrual, and your repayment are all blockchain transactions. This means:
Understanding the basics of how blockchain networks function helps demystify the technology behind DeFi lending.
A blockchain network consists of thousands of computers (nodes) running the blockchain software. These nodes communicate with each other to:
This distributed architecture is what makes blockchains resilient. There is no central server to hack, no single point of failure, and no entity that can unilaterally shut down the network.
For thousands of independent nodes to agree on the state of the ledger, they need a system for reaching agreement. This is called a consensus mechanism.
Proof of Work (PoW): The original consensus mechanism used by Bitcoin. Miners compete to solve complex mathematical puzzles, and the winner gets to add the next block. This is energy-intensive but extremely secure.
Proof of Stake (PoS): Used by Ethereum (since September 2022) and many other blockchains. Validators lock up (stake) their own tokens as collateral. They are randomly selected to create new blocks, and they risk losing their stake if they act maliciously. This is much more energy-efficient than Proof of Work.
When you interact with a lending protocol through Borrow by Sats Terminal, here is what happens on the blockchain:
This entire process takes seconds to minutes depending on the blockchain and network conditions.
Not all blockchains are the same. Different networks have different strengths, and understanding these differences helps you choose where to borrow.
Bitcoin was the first blockchain, launched in 2009 by the pseudonymous Satoshi Nakamoto. It was designed as a peer-to-peer electronic cash system and has evolved into the world's leading digital store of value.
Strengths:
Limitations for DeFi:
Bitcoin is the collateral asset of choice for many borrowers on Borrow by Sats Terminal, but the lending protocols themselves typically run on Ethereum or its Layer 2 networks.
Ethereum launched in 2015 with a specific mission: to be a programmable blockchain that supports smart contracts. This programmability is what enabled the explosion of DeFi applications.
Strengths:
Limitations:
Ethereum remains the backbone of DeFi lending. When you borrow through Borrow by Sats Terminal on Ethereum mainnet, you benefit from the deepest liquidity and the most mature protocol ecosystems.
Layer 2 networks are built on top of Ethereum to solve its scalability limitations. They process transactions off the main Ethereum chain but periodically submit proofs back to Ethereum, inheriting its security guarantees.
Think of Ethereum mainnet as a busy highway and Layer 2s as express toll roads that run alongside it. The toll roads handle more traffic at faster speeds, but they ultimately connect back to the main highway.
Popular Layer 2 Networks:
Arbitrum -- One of the largest Layer 2 networks by total value locked. Uses "optimistic rollup" technology, meaning it assumes transactions are valid unless proven otherwise. Many major DeFi protocols have deployed on Arbitrum.
Optimism -- Another optimistic rollup Layer 2 with a growing DeFi ecosystem. Known for its focus on public goods funding and community governance.
Base -- Built by Coinbase, Base is an optimistic rollup that has gained rapid adoption. It benefits from Coinbase's user base and infrastructure, making it accessible for newcomers.
Why Layer 2s Matter for Borrowers:
Several fundamental properties of blockchain technology make DeFi lending possible.
Anyone with an internet connection and a wallet can interact with a blockchain. There is no application process, no credit check, no geographic restrictions. This is why Borrow by Sats Terminal can offer crypto borrowing without KYC -- the underlying technology does not require identity verification.
Every transaction on a public blockchain is visible to everyone. You can track exactly where your collateral is, how much interest has accrued, and what the smart contract rules are. This radical transparency is a stark contrast to traditional finance, where internal bank records are private.
DeFi protocols can interact with each other through smart contracts. This "composability" is often called "money legos" because protocols can be combined like building blocks. For example, a lending protocol can integrate with a decentralized exchange, which can integrate with a yield aggregator, creating complex financial products from simple components.
Borrow by Sats Terminal leverages this composability by aggregating multiple lending protocols into a single interface, allowing you to access the best terms across the ecosystem.
Because blockchains are maintained by thousands of independent nodes worldwide, no single entity can block transactions or freeze accounts. Once your collateral is in a smart contract, no government, corporation, or individual can confiscate it (assuming the smart contract itself does not have an admin function that allows this).
Every action on a blockchain requires computational resources, and users pay for these resources through "gas fees." Understanding gas is essential for anyone borrowing in DeFi.
Gas is the unit that measures the computational effort required to execute operations on a blockchain. Simple transactions (like sending tokens from one wallet to another) use less gas. Complex transactions (like interacting with a lending protocol's smart contract) use more gas.
Gas fees have two components:
During busy periods, gas prices increase because users compete to have their transactions processed. During quiet periods, prices decrease.
| Network | Typical Transaction Cost | Speed |
|---|---|---|
| Ethereum Mainnet | $1 - $50+ | 12-15 seconds |
| Arbitrum | $0.01 - $0.50 | 1-2 seconds |
| Optimism | $0.01 - $0.50 | 2 seconds |
| Base | $0.01 - $0.30 | 2 seconds |
For a more detailed exploration, see our guide on understanding gas fees.
Gas fees can significantly impact the economics of smaller loans. If you are borrowing $500 in stablecoins and paying $50 in gas fees on Ethereum mainnet, 10% of your loan goes to transaction costs. On a Layer 2, those same gas fees might be under $1.
Borrow by Sats Terminal helps you factor in these costs by showing protocol options across different networks.
To interact with any blockchain, you need a wallet. A wallet is not a place where your crypto is stored (that is a common misconception). Rather, it is a tool that holds your private keys -- the cryptographic credentials that prove you own your assets on the blockchain.
Browser extension wallets like MetaMask are installed as browser add-ons. They are convenient for interacting with DeFi applications.
Mobile wallets are smartphone apps that let you manage your crypto on the go.
Hardware wallets are physical devices that store your private keys offline, providing the highest level of security.
Embedded wallets like the Privy wallet used by Borrow by Sats Terminal are integrated directly into the application, offering a seamless experience without requiring external software installation.
When you use Borrow by Sats Terminal, your wallet is self-custodial. This means only you have the private keys that control your assets. Neither Sats Terminal nor the lending protocols can access your funds without your explicit transaction approval.
Self-custody is a core principle of blockchain technology. It gives you complete control but also complete responsibility. There is no "forgot password" button -- if you lose access to your wallet, no one can recover your funds.
For a deeper dive, read our guide to crypto wallets.
Now let us connect blockchain networks specifically to the lending use case.
DeFi lending protocols deploy their smart contracts on one or more blockchain networks. Each deployment creates a separate market:
These markets operate independently even though they may be governed by the same protocol. Interest rates, available collateral types, and liquidity can differ significantly between deployments.
The DeFi landscape is increasingly multi-chain. Your Bitcoin collateral might be available as wBTC on Ethereum, as cbBTC on Base, or in other wrapped forms on other networks. Each chain offers different:
Borrow by Sats Terminal aggregates these options across chains, letting you compare and choose the best combination of rates, fees, and liquidity.
Moving assets between different blockchain networks requires bridges -- protocols that lock your tokens on one chain and mint equivalent tokens on another. While bridges enable multi-chain DeFi, they also introduce additional risk. Bridge exploits have been among the largest DeFi security incidents. When possible, using assets that are native to your chosen chain is safer than bridging.
When borrowing through Borrow by Sats Terminal, you may have options across multiple networks. Here is how to think about the choice.
Ethereum mainnet typically has the deepest liquidity. For large loans ($100,000+), the deep liquidity means less price impact and potentially better rates. Gas fees are a smaller percentage of large transactions, making mainnet more cost-effective at scale.
Layer 2 networks like Arbitrum and Base are often the better choice. Lower gas fees mean more of your collateral goes toward the loan rather than transaction costs. The security of these networks is inherited from Ethereum, so you are not sacrificing safety.
If you need your loan quickly, Layer 2 networks confirm transactions in seconds rather than the 12-15 seconds typical on Ethereum mainnet. This faster confirmation also means less time waiting when conditions are changing rapidly.
Understanding blockchain security helps you protect your assets when borrowing.
Major blockchain networks like Ethereum are secured by billions of dollars in staked value. Attacking the network would require controlling a majority of this stake, making it economically impractical. Layer 2 networks inherit this security through their connection to Ethereum.
The security of your loan depends not just on the blockchain but on the smart contracts running on it. Well-audited protocols with long track records are the safest options. Borrow by Sats Terminal aggregates established protocols to help you interact with battle-tested smart contracts.
Your biggest security risk is typically at the wallet level:
Blockchain technology is advancing rapidly. Several trends are worth watching.
Both Ethereum and Layer 2 networks are continuously improving their throughput and reducing costs. Ethereum's "Danksharding" roadmap aims to dramatically reduce Layer 2 transaction costs, making DeFi borrowing even more accessible.
New standards and protocols are making it easier to move assets and data between different blockchains. This could eventually enable seamless borrowing across chains without manual bridging.
While blockchain transparency is generally a feature, privacy-preserving technologies are being developed for situations where transaction privacy is desired. These could enable confidential DeFi transactions while maintaining the system's integrity.
As blockchain networks mature and regulatory frameworks develop, institutional participation in DeFi is growing. This brings additional liquidity, stability, and legitimacy to the ecosystem.
Blockchain networks are the infrastructure that makes DeFi lending possible. Here are the essential points for borrowers:
Understanding these fundamentals gives you the context to make informed decisions when borrowing against your Bitcoin. You do not need to be a blockchain expert, but knowing the basics helps you navigate the ecosystem with confidence.
For related topics, explore our guides on smart contracts and gas fees, or check the FAQ on what blockchains Borrow supports.
Related Guides
Basics
A beginner-friendly guide to smart contracts: what they are, how they work, why they matter for DeFi lending, and how they enable trustless crypto borrowing without intermediaries.
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 blockchain is a digital ledger -- a record-keeping system -- that is shared across thousands of computers worldwide. Instead of one company or bank maintaining the records, every participant in the network has a copy. When new information is added (like a transaction), it is grouped into a "block" and linked to the previous block, forming a chain. This structure makes it virtually impossible to alter past records because changing one block would require changing every subsequent block across thousands of computers simultaneously. Blockchains enable secure, transparent transactions without needing to trust any single institution.