# Swarm挖矿教程 （0.6.x版）

By [Mu](https://paragraph.com/@lastshot) · 2022-03-21

---

“写于

2021.05.27因为

最近要换电脑，怕写过的东西找不到了，就上传镜子这里“”

ps：从今天开始编辑，网络上最新版本关于手机最近20个版本，最低投下。要坐稳，慕手扒手带你用窗户系统拥而至。✊

**1️⃣ 下载应用**

首先打开链接🔗：

[https://github.com/ethersphere/bee/releases](https://github.com/ethersphere/bee/releases)

在 V0.6.1 **\- Assets**中找到64位的zip格式的文件，并点击下载📥。

![](https://storage.googleapis.com/papyrus_images/6e22225c4edeb7bf54aba17f2f3884dda09b632f199f96abdc0817d5446fe52e.png)

压缩zip文件到你电脑的解算盘💽（需空留100个），这里自己用的笔记本做实验，现在制作成C盘。

![](https://storage.googleapis.com/papyrus_images/d09437088e978e87bf5241692eb93578cf1dcdfcfe8fee3596a780c6bf6433d2.png)

在此文本文档中，通过空白处，新建为TXT格式的📓，并命名为“ **bee-default.yaml** ”。

![](https://storage.googleapis.com/papyrus_images/5785817654d823c209a74283643a7dae198091da3c9023fe02a3e812cd70d58e.png)

**2️⃣ 注册账号**

*   打开链接并注册账号🔗：
    

[https://infura.io/login](https://infura.io/login) 

![](https://storage.googleapis.com/papyrus_images/6d9eba5fe333318b4eba043821e489b14d81e44a58755116ffc37e1b42868180.png)

*   选择**ETH**，并点击🔘 **创建新项目。**
    

![](https://storage.googleapis.com/papyrus_images/64dc5e79e1ba3b046189ddd9482c6bf5f8d2b6820f0eb2e8ecad0e2e6b7f8c42.png)

*   名字任选，喜欢就好。
    

![](https://storage.googleapis.com/papyrus_images/a574c9ef91d43c17b869bb7aa69231cb79da317aefe30701f61345d522db99b7.png)

*   **ENDPOINTS**选项中选择**GORLI**网络。
    

图片截图https的大观网址🔗，需**保存**好使用。

点击**保存更改**，保存设置。

![](https://storage.googleapis.com/papyrus_images/f54bcc6d819d50ce7aea611605f912392635cd51a2397137046d9d285c51d161.png)

3️⃣️⃣️**环境**

• 打开在第**1️⃣**步新建的**yaml**格式文件📄，输入以下：

    clef-signer-enable: false data-dir: C:/.bee swap-enable: trueswap-endpoint: https://goerli.infura.io/v3/xxxxxxxxxverbosity: tracewelcome-message: " bbbbb"debug-api-enable:true
    

其中**swap-endpoint：** 这行的网址，更改为开头保存的网址🔗。

点击**文件** - **保存**，确认文件格式为**yaml**，不需要txt，确认文件时间与系统时间一致。

![](https://storage.googleapis.com/papyrus_images/32a150b743c14786f169378142be205a3c8a62ba0bc1fe7834e3567cb77f0ec1.png)

• 在此文件夹中地址栏输入“**cmd**”，回车**⏎**。

![](https://storage.googleapis.com/papyrus_images/624111c1f80cea1598efa82130f392f688c26a3403bc3cd2b3b903188ab5580c.png)

输入以下命令，并设置密码🔑，如下图。

注意：密码输入不会显示，要输两次，每次输完按回车。

\*

    bee.exe start -config beedefault.yaml
    

![](https://storage.googleapis.com/papyrus_images/89159c1eb0721794837a724e6dea069d2b72a611c90d4e168f479e78931a8433.png)

• 进入**keys**文件夹📁，有三个key文件。

保持这个窗口打开，等会要用。

![](https://storage.googleapis.com/papyrus_images/e9fa14f329040155914411d8730abddfb378aff15b2b9b66d9c4e273a8ecdeac.png)

![](https://storage.googleapis.com/papyrus_images/bdf2a248f3d6299293d4b2084b015089e0de17d129613433d719478014ff62dd.png)

• 打开链接，下载破解软件（可帮助查看本地私钥，方便为后续添加到小狐狸钱包）🔗：

[https://github.com/ethersphere/exportSwarmKey/releases/download/v0.1.0/export-swarm-key-windows-amd64.exe](https://github.com/ethersphere/exportSwarmKey/releases/download/v0.1.0/export-swarm-key-windows-amd64.exe)

![](https://storage.googleapis.com/papyrus_images/224e81e5ceaa40b3d81ff8c8d3ff4baa160326bfff22bafe934523b4bd51e639.png)

此软件名称为export-swarm-key-windows-amd64，需**重命名✏️**为**qusiyao.exe**，方便后续操作。

ps：当然也可以选择官网给的bee-clef，但不是很方便，所以暂时不展开讲述，之后有问题再交流。

• 在此文件夹中地址栏输入“**cmd**”，回车**⏎**。

按照图中内容，输入代码。

自己这里为C盘，大家可以自行更改盘符；**xxxx**是你刚设置的密码；siyao.txt 名字任取。

![](https://storage.googleapis.com/papyrus_images/4934dd44dd3b96547b667ac3f2063e4951a6c76b2de10c421c9dc43a93e1443e.png)

然后文件夹下会自动生成**siyao.txt**格式的文件，打开如图。

address是你的账号地址，privatekey是你的私钥，请自行保存。

![](https://storage.googleapis.com/papyrus_images/63c473625f304943e6dc765ac2b81ba1eb259214ff2ef33e2eb244e5395029aa.png)

• 导入小狐狸钱包💰，具体步骤网上都有，不再陈述。并记下你的钱包地址，等会要用。

gbzz代币的合约代码：

0x2ac3c1d3e24b45c6c310534bc2dd84b5ed576335

PS：地址前要加上0x才是完整地址哦。

4️⃣ **挖矿时间到**

挖测试代币的时候到了！🎉🎉

所有记住在**Goerli**的测试网络下进行：

🚰torg1：[https://faethswarm/](https://faethswarm/)

🚰里锁2：[https://goerlock.it/](https://goerlock.it/)

🚰gg3：discord/ykCuww

（进阶，完成指示，拿开水龙头去代币）

🚰t4：[https://fagoerli.blog/](https://fagoerli.blog/)

（这个是拿吉斯的）

兑换：[https://bzz.ethswarm.org/](https://bzz.ethswarm.org/)

（没想到没有成功，让你从网上换了4个点在这个换来的好巧思就好了。）

没有成功，就晚点再尝试，没有人崩了估计又是。

回到3️⃣ 个操作**环境**，第二步，重复。显示图，恭喜你，已经。

  

![](https://storage.googleapis.com/papyrus_images/7c8fff8a2a6147d282da44475fa9496688899426583f547dd0359915520c299e.png)

![](https://storage.googleapis.com/papyrus_images/2320bc99240c11aa65f26f163e278890667db2944caaf4c84bfd999f307e1a47.png)

5️⃣**其他的一些**地址🔗

*   这个查看是否连接上，只要出现链接就可以了：
    

[http://localhost:1633/](http://localhost:1633/)

![](https://storage.googleapis.com/papyrus_images/d5fff3f5c1a49031156c7dd52669ed50f6cc133b37740f01e0c7ba93f8fcd7f5.png)

*   查节点：
    

[http://localhost:1635/peers](http://localhost:1635/peers) 

*   这个也可以查全网节点：
    

[http://bzzscan.com/](http://bzzscan.com/)

*   查你自己的钱包地址，我们已经完成了，暂时没有了：
    

[http://localhost:1635/addresses](http://localhost:1635/addresses)

> 账本合同地址、抽取的支票记录全部包括在内。

> [http://localhost:1635/支票簿/地址](http://localhost:1635/%E6%94%AF%E7%A5%A8%E7%B0%BF/%E5%9C%B0%E5%9D%80)

> 当你有支票访问，合约提取后，你拿着支票，到后查器直接查查地址的支票收支和状态余额（替换成你自己的支票的地址）。
> 
> [https://goerli.etherscan.io/address/0x480F1b5719519363414F](https://goerli.etherscan.io/address/0x480F1b5719519363414F)
> 
> 642de0F098c1C7069E16#tokentxns”

*   支票查询：
    

[http://localhost:1635/支票簿/支票](http://localhost:1635/%E6%94%AF%E7%A5%A8%E7%B0%BF/%E6%94%AF%E7%A5%A8)

有疑问，那说吧。

这玩意儿有很多项目开发好，bug，是很多bug类型😬。

---

*Originally published on [Mu](https://paragraph.com/@lastshot/swarm-0-6-x)*
