# NEXUS Testnet II 节点教程(WEB\&CLI\&Mobile)

### Nexus Layer 1

Nexus Layer 1 是一台行星级超级计算机，旨在承载全球商业。Nexus Layer 1 正在建设中，旨在成为一个行星级的区块链超级计算机：

* 将全球计算能力集中到一条链上
* 随着每个新节点水平扩展
* 使用 Nexus zkVM 垂直扩展
* 创建所有计算的统一证明：Proof Singularity

### **Nexus 测试网 II**

对于 Testnet II，Nexus Layer 1 是与 Nexus Network 的 Orchestrator 集成的概念验证。

编排器通过 RPC 端点调用第 1 层来奖励节点所获得的\*NEX 积分\*。

#### **测试网特点**

* EVM 兼容性：与以太坊工具和标准完全兼容。
* 新的 Nexus 操作系统：贡献计算能力，赚取 NEX 积分，并攀升排行榜。
* 电子邮件和钱包登录：使用您的电子邮件或钱包轻松登录。
* 简化的节点管理：将所有节点连接到一个 Nexus 帐户。

### Web网页赚取积分

浏览器访问：<https://app.nexus.xyz/>

<figure><img src="https://images.mirror-media.xyz/publication-images/1l13o1Q9L8fBXTDy1tgTR.png?height=1613&#x26;width=2733" alt=""><figcaption></figcaption></figure>

点击“Sign up”

<figure><img src="https://images.mirror-media.xyz/publication-images/Ftia4EtIi8ahUdAcoECUd.png?height=945&#x26;width=1167" alt=""><figcaption></figcaption></figure>

选择EVM钱包或邮箱注册，小编是先选择钱包授权注册第二步再补邮箱。

如果选择邮箱先注册的话，系统会自动生成一个钱包地址给你，如果想换成自己的钱包地址，需要在设置里面 “Link a new wallet” → “Select”

单击开关开始赚取 NEX 积分：

<figure><img src="https://images.mirror-media.xyz/publication-images/BFiXRW-vQ9Q2e8i8ff2Iw.png?height=1459&#x26;width=2805" alt=""><figcaption></figcaption></figure>

然后开始计算积分：

<figure><img src="https://images.mirror-media.xyz/publication-images/47GvQ3ZmaLX0lcOIuyf5K.png?height=1183&#x26;width=2499" alt=""><figcaption></figcaption></figure>

点击“Earnings” → View Previous Points 同时可以看到过去第一期跑的测试积分：

<figure><img src="https://images.mirror-media.xyz/publication-images/0Kzd4qH7zH6B5YidRpl2Q.png?height=941&#x26;width=1189" alt=""><figcaption></figcaption></figure>

#### 自动连接脚本

前期不稳定，连接断断续续，网页版本需要时不时去点击开关，下边的方法能实现网页自动连接：

右键 → 检查 → 打开Console控制台 → 粘贴脚本 -> Enter键执行

```
 (function() {
  const targetSelector = '.relative.w-24.h-16.rounded-full.cursor-pointer';   
  const intervalTime = 60000; // 每60秒检查一次
  // 循环检查
  function loopCheck() {
    const target = document.querySelector(targetSelector); // 查找目标组件
    if (target) {
      const img = target.querySelector('img[alt="Circle Image"]'); 
      if (img && img.classList.contains("brightness-0") && img.classList.contains("invert")) {
        console.log("未连接！正在点击...");
        target.click(); // 自动点击目标组件
      } else {
        console.log("已经连接,进入下一个循环...");
      }
    } else {
      console.log("未找到目标组件，需要更新脚本...");
    }
  }
  setInterval(loopCheck, intervalTime);
})();
```

如何粘贴脚本提示“Warning”，请输入“allow pasting”

<figure><img src="https://images.mirror-media.xyz/publication-images/VywhJkVYIx4AKmMgDvQ1z.png?height=555&#x26;width=557" alt=""><figcaption></figcaption></figure>

### CLI 节点赚取积分

Nexus NetWork CLI 是一个用于向网络贡献计算资源的命令行工具。

#### MACOS 节点

前提条件：

1. 安装Rust

   ```
   curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
   ```
2. 添加`riscv32i`目标

   ```
   rustup target add riscv32i-unknown-none-elf
   ```

<figure><img src="https://images.mirror-media.xyz/publication-images/rh5vl1e9qW-k3woq9FUYo.png?height=435&#x26;width=668" alt=""><figcaption></figcaption></figure>

安装脚本（重启节点也是这个脚本）：

```
curl https://cli.nexus.xyz/ | sh
#权限不够需要加sudo
sudo curl https://cli.nexus.xyz/ | sh
```

<figure><img src="https://images.mirror-media.xyz/publication-images/YPkVhoPqskRkOjAycT9OF.png?height=419&#x26;width=757" alt=""><figcaption></figcaption></figure>

输入 Node ID

<figure><img src="https://2074403777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FReABemTnsY9kcd8hbceN%2Fuploads%2F5ctMscurZdKiW8cljqxo%2Ff4e4107429fb65d0027d2721c6dcd46.png?alt=media&#x26;token=7f40cf2e-c28b-464e-8b0a-a45722f81c7c" alt=""><figcaption></figcaption></figure>

*如果启动失败的话，过后多尝试连接，因为是刚启动的测试网络，还不太稳定。*

**如何查找”Node ID” ？**

<figure><img src="https://images.mirror-media.xyz/publication-images/1E_R3XbsJ9ssIQ1zmMIIA.png?height=711&#x26;width=1717" alt=""><figcaption></figcaption></figure>

“Add CLI node“

<figure><img src="https://images.mirror-media.xyz/publication-images/_FkexNrgG119Fmumuq4va.png?height=687&#x26;width=973" alt=""><figcaption></figcaption></figure>

生成Node ID

<figure><img src="https://2074403777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FReABemTnsY9kcd8hbceN%2Fuploads%2FxOvF6Ix1Ou8CUyQ8VWYc%2Fimage.png?alt=media&#x26;token=f20de452-20e5-402a-9abe-538f364d1cf7" alt=""><figcaption></figcaption></figure>

复制Node ID

* 复制形如”XXXXX”的ID
* 若显示DEFAULT1，请刷新页面重新生成
* 目前系统还不稳定，ID有可能刷不出来，后续多尝试

<figure><img src="https://images.mirror-media.xyz/publication-images/tRP8noMMrgRYrlls5Bwoo.png?height=845&#x26;width=1447" alt=""><figcaption></figcaption></figure>

*CLI 节点前期问题多多，后续还会更新此教程，请及时刷新查看*。

### Linux 节点

启动流程和Macos基本一样，也需要安装 **Rust** 和添加 **riscv32i**

<figure><img src="https://images.mirror-media.xyz/publication-images/iycwyHK-JO21YbBUyiz_4.png?height=1371&#x26;width=2081" alt=""><figcaption></figcaption></figure>

安装脚本（也是启动脚本）：

```
curl https://cli.nexus.xyz/ | sh
```

<figure><img src="https://2074403777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FReABemTnsY9kcd8hbceN%2Fuploads%2FppfnsBIrgsUlqfK6sh3M%2Fimage.png?alt=media&#x26;token=34af4203-1978-46cc-8c84-45ddf16a2a7e" alt=""><figcaption></figcaption></figure>

启动成功如下图：

<figure><img src="https://2074403777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FReABemTnsY9kcd8hbceN%2Fuploads%2FhS0Gn1jJFbffqaq6I7WA%2Fimage.png?alt=media&#x26;token=8e721865-9c7f-4118-be61-93671cacf505" alt=""><figcaption></figcaption></figure>

### 手机端节点

方式1： 可以通过Okx App 打开链接“app.nexus.xyz” 通过web3钱包链接登录。

方式2：手机浏览器直接打开链接“app.nexus.xyz” 通过邮箱登录。

<figure><img src="https://images.mirror-media.xyz/publication-images/1LvRJ-xhKv0hEI0HBpLm_.jpg?height=2104&#x26;width=1080" alt=""><figcaption></figcaption></figure>

### 常见问题

1. *可以一个账号添加多个节点。*
2. *Nexus Testnet II 网络目前处于测试网阶段，可能不稳定,连接会断断续续。*

### **结语**

*觉得有用的，记得关注我的推特哦，这里将会持续整理Depin挂机/AI项目/测试网交互/主网交互/节点挖矿等详细教程～*

[*https://x.com/MossmindAi*](https://x.com/MossmindAi)
