Ethereum Fundamentals & Wallets

In this lesson, you'll dive into the fundamentals of Ethereum, the leading platform for Web3 development. You'll learn how Ethereum works, understand its key components like addresses and transactions, and master the use of Web3 wallets to interact with decentralized applications (dApps). This will empower you to begin exploring and engaging with the Web3 ecosystem.

Learning Objectives

  • Define Ethereum and its role in Web3.
  • Explain the concepts of Ethereum accounts, addresses, and transactions.
  • Set up and use a Web3 wallet (MetaMask) to interact with dApps.
  • Understand the purpose and function of gas fees in Ethereum.

Lesson Content

What is Ethereum?

Ethereum is a decentralized, open-source blockchain platform. Think of it as a global computer where anyone can create and run applications. Unlike centralized systems controlled by a single entity, Ethereum allows developers to build applications that operate without intermediaries, offering greater transparency, security, and user control. It's the foundation upon which many Web3 applications, including DeFi platforms, NFTs, and DAOs, are built.

Quick Check: What is Ethereum?

Ethereum Accounts, Addresses, and Transactions

Ethereum uses a system of accounts. There are two main types:

  • Externally Owned Accounts (EOAs): These are accounts controlled by users, like you and me, using private keys (think of them like passwords). You need a private key to authorize transactions from your EOA.
  • Contract Accounts: These accounts are controlled by smart contracts (programs stored on the blockchain). They don't have private keys directly; their behavior is defined by the code within the smart contract.

Each account (both EOAs and contract accounts) has a unique address, a long string of hexadecimal characters (e.g., 0xAb5801a7D398351b8bE11C439e690f9CA31B73bB). This is what you'll use to send and receive Ether (ETH) and interact with contracts.

Transactions are the fundamental operations on the Ethereum blockchain. They involve transferring value (ETH or tokens), interacting with smart contracts, or changing data on the blockchain. Each transaction is recorded on the blockchain permanently. You'll initiate transactions from your EOA using your private key to sign them.

Quick Check: What is an Ethereum address?

Gas Fees: The Cost of Doing Business

Every transaction on Ethereum requires a fee, called gas. Gas is essentially the 'fuel' that powers the execution of transactions and smart contracts on the network. Gas fees are paid in ETH to the miners/validators who process and include your transaction in a block.

  • Gas Limit: The maximum amount of gas you're willing to spend on a transaction.
  • Gas Price: The amount of ETH you are willing to pay per unit of gas. This is determined by the current demand on the network. Higher gas prices usually mean faster transaction confirmation.
  • Transaction Fees: Gas Limit x Gas Price. The actual cost of your transaction.

Gas fees fluctuate based on network congestion. During periods of high activity, gas prices increase. Tools like Etherscan (etherscan.io) allow you to monitor current gas prices and estimate transaction costs.

Quick Check: What is the purpose of gas fees?

Setting up and Using a Web3 Wallet (MetaMask)

A Web3 wallet is your gateway to interacting with the Ethereum blockchain and dApps. It manages your private keys and allows you to sign transactions. MetaMask is a popular and user-friendly browser extension and mobile app.

Steps to set up MetaMask:

  1. Download and Install: Go to metamask.io and install the extension for your browser (Chrome, Firefox, etc.) or download the mobile app.
  2. Create a Wallet: Follow the on-screen instructions to create a new wallet. IMPORTANT: You will be given a seed phrase (a series of 12-24 words). Write this down and store it securely. This is your backup key. If you lose access to your wallet, the seed phrase is the ONLY way to recover it. Never share your seed phrase with anyone!
  3. Fund your wallet: You'll need ETH to pay for gas fees. You can buy ETH directly through MetaMask (using services like Transak or MoonPay) or transfer it from a cryptocurrency exchange (like Coinbase or Binance).
  4. Connecting to dApps: Visit a dApp website (e.g., a decentralized exchange like Uniswap). The dApp will prompt you to connect your MetaMask wallet. Approve the connection. You can now interact with the dApp (e.g., trade tokens, stake coins).
  5. Signing Transactions: When interacting with a dApp, you'll be prompted to approve transactions in MetaMask. Review the transaction details (gas fees, amount, etc.) before approving.

Quick Check: What should you do with your seed phrase?

Progress
0%