# 开发前的准备

***本教程是技术大牛 luofei614 的DApp开发学习笔记，编成教程分享给开发者。***

**安装MetaMask浏览器钱包**

Chrome浏览器上的钱包插件 <https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=zh-CN>

MetaMask是浏览器钱包， 用它可以进行开发测试。 在网页需要钱包签名时，MetaMask可以弹出进行签名。 MetaMask是开发以太坊必备的。

安装好的界面：

![图片](https://3485192048-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fhypergraph-decentralized-data-engine%2F-M_C3MET7JC_-E9es5lU%2F-M_C5QuK0vJEa6uZ_Rap%2F0.png?generation=1620496204369513\&alt=media)

点击中间下拉列表，可以切换网络， 点击头像可以切换账号。

**切换到以太坊测试链**

Rosten是一个以太坊的测试链， 在测试链是使用测试币进行合约部署，测试币有免费领取的地方，不会产生真实的费用。

![图片](https://3485192048-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fhypergraph-decentralized-data-engine%2F-M_C3MET7JC_-E9es5lU%2F-M_C5QuLsnqS_eSpzlZE%2F1.png?generation=1620496204412575\&alt=media)

**水龙头下领取测试币**

<https://faucet.ropsten.be/> 访问这个地址输入你MetaMask钱包的账户地址。 即可提取1ETH的测试币。

MetaMask钱包界面上也可以直接领取ropsten的测试币。

路径：&#x20;

资产 -> ETH > 购买 -> 从水龙头领取测试币


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hg.network/dapp-kai-fa-jiao-cheng/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
