0Pricing
Web3 & DApp Development Fundamentals · 课时

MetaMask 入门

设置并配置 MetaMask 这一常用的浏览器扩展钱包,了解它在与 DApp 交互中的作用。

MetaMask 入门 是 CoddyKit 上的免费 Web3 & DApp Development Fundamentals 课时。 这是第 3 节课,共 3 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 Web3 & DApp Development Fundamentals 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 Web3 & DApp Development Fundamentals 课程共包含 3 节课。

本课时的部分内容尚未翻译,以英文显示。

MetaMask: Your Web3 Gateway!

MetaMask is a popular cryptocurrency wallet that functions as a browser extension. It allows you to store and manage your digital assets, like Ether (ETH) and other tokens.

Think of it as a secure bridge between your web browser and the Ethereum blockchain. It's essential for interacting with most decentralized applications (DApps).

Get MetaMask: Browser Installation

MetaMask is available for popular browsers like Chrome, Firefox, Brave, and Edge. Installation is straightforward, just like any other browser extension.

  • Step 1: Visit the official MetaMask website.
  • Step 2: Click 'Download' and select your browser.
  • Step 3: Add the extension to your browser.

Always download from the official site to avoid fake versions!

Create or Import Your Wallet

After installation, you'll be prompted to set up your wallet. You have two options:

  • Create a new wallet: This is for new users. MetaMask will generate a new set of keys for you.
  • Import wallet: If you already have a wallet, you can import it using your Secret Recovery Phrase.

For this lesson, we'll focus on creating a new one.

Guard Your Secret Recovery Phrase!

When creating a new wallet, MetaMask will show you a 12-word Secret Recovery Phrase (also called a seed phrase or mnemonic).

  • This phrase is the master key to ALL your crypto assets.
  • Write it down physically and store it in a very safe, private place.
  • NEVER share it with anyone, type it online, or store it digitally.

Losing it means losing access to your funds; sharing it means someone else gains access.

Set a Strong Password

After securing your Secret Recovery Phrase, you'll create a password for your MetaMask wallet. This password:

  • Encrypts your wallet on your local device.
  • Is required each time you open the extension or confirm transactions (if set to auto-lock).

Remember, this password protects local access; the Secret Recovery Phrase is the ultimate backup.

Navigating Your MetaMask Wallet

Once set up, the MetaMask interface shows key information:

  • Account Address: Your public address for receiving funds.
  • Network Selector: Shows which blockchain network you're connected to (e.g., Ethereum Mainnet).
  • Asset List: Displays your cryptocurrencies and tokens.
  • Activity Tab: Shows your transaction history.

This is your control panel for Web3!

Connecting MetaMask to DApps

MetaMask's primary role is to connect you to DApps. When you visit a DApp, it will often prompt you to 'Connect Wallet'.

  • Clicking this usually triggers a MetaMask pop-up.
  • You approve the connection, allowing the DApp to view your public address.
  • The DApp can then propose transactions for you to sign and approve.

Always review the DApp's requested permissions carefully!

Switching Between Blockchain Networks

MetaMask supports various EVM-compatible networks. The network selector at the top allows you to switch between them:

  • Ethereum Mainnet: The primary, live Ethereum blockchain.
  • Testnets (e.g., Sepolia, Goerli): Replica networks for developers to test DApps without using real funds.
  • Custom RPC: For connecting to other EVM chains (e.g., Polygon, BNB Smart Chain) or local development environments.

Ensure you're on the correct network for the DApp you're using!

Displaying Your Custom Tokens

MetaMask automatically displays common tokens. However, for less common ERC-20 tokens, you might need to add them manually:

  • Go to the 'Assets' tab and click 'Import tokens'.
  • Enter the token's contract address.
  • MetaMask will usually auto-fill the token symbol and decimals.

This doesn't move the token, it just makes it visible in your wallet!

MetaMask Knowledge Check

Which of the following best describes the primary purpose of MetaMask's Secret Recovery Phrase?

MetaMask: Your Web3 Passport

You've now learned how to set up and navigate MetaMask!

  • It's your secure browser extension wallet.
  • The Secret Recovery Phrase is crucial for recovery, keep it safe!
  • MetaMask connects you seamlessly to DApps.
  • You can manage assets and switch between different blockchain networks.

Practice interacting with some DApps to get comfortable using your new Web3 passport!

常见问题解答

「MetaMask 入门」课时是免费的吗?

是的 — 「MetaMask 入门」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 Web3 & DApp Development Fundamentals 课程的其余内容,请升级到 CoddyKit PRO。 Web3 & DApp Development Fundamentals 课程共包含 3 节课。

「MetaMask 入门」这节课中我会学到什么?

设置并配置 MetaMask 这一常用的浏览器扩展钱包,了解它在与 DApp 交互中的作用。 你通过在浏览器中直接运行的动手代码来练习 Web3 & DApp Development Fundamentals,全天候 AI 导师会在你学习这节课的过程中回答你的问题。

学习 Web3 & DApp Development Fundamentals 需要有经验吗?

无需任何先前经验。CoddyKit 上的 Web3 & DApp Development Fundamentals 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 3 节课,共 3 节。

「MetaMask 入门」课时需要多长时间?

大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。

我能在这节 Web3 & DApp Development Fundamentals 课中编写并运行代码吗?

能。每节 Web3 & DApp Development Fundamentals 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。

此课程中的所有课时

  1. 区块链密码学
  2. 公钥/私钥与钱包
  3. MetaMask 入门
← 返回 Web3 & DApp Development Fundamentals