# 如何连接

{% embed url="<https://youtu.be/dCKlpi8v738>" %}

{% hint style="info" %}
如需手动审批 builder 费用，请使用我们专门的 [工具](https://goodcrypto.app/hype/builder-fees) ，如下所述。视频中所示的 Hyperdash 工具已经停用
{% endhint %}

### 自动连接 MetaMask

如果你使用 MetaMask 控制你的 Hyperliquid 账户，只需 3 次点击即可将其连接到 goodcryptoX。

如果不是——你可以选择按照 [手动设置](#manual-setup) 流程，或者将控制你的 Hyperliquid 账户的钱包添加到 MetaMask，然后继续以下步骤。

{% stepper %}
{% step %}
在我们的 [**网页版应用**](https://app.goodcrypto.app) 中，前往：

```
设置 -> 交易所 -> Hyperliquid
```

{% endstep %}

{% step %}
点击“连接 MetaMask”：

<figure><img src="/files/4479280c3a5e8714d862979afc445f5651c6c3f0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
选择控制你的 Hyperliquid 账户的钱包，然后点击“连接”：

<figure><img src="/files/c6b900fe3d8cb4d07c5397a2b8e703c084d86d13" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
我们现在将生成一个 API 钱包并将其注册到 Hyperliquid。请在 Metamask 中点击“确认”以签署交易（无需 gas）：

<figure><img src="/files/bfc7075a486a6a5d7ff669f3734613ee1d7c438f" alt="" width="375"><figcaption></figcaption></figure>

在极少数情况下，如果你在 Hyperliquid 上已经拥有最大数量的已注册 API 钱包（3 个），我们会询问你要替换哪一个，并在其位置注册一个新的。
{% endstep %}

{% step %}
随后系统会要求你签署交易，以批准我们的 [Builder 费用](/goodcryptox-zh/yong-xu-he-yue-dex/hyperliquid/gou-jian-zhe-fei-yong.md)。点击“确认”继续（无需 gas）：

<figure><img src="/files/283ccefd4ca24739126ac4844c4b16d59bee62f2" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

你的 API 钱包现在将保存在我们的安全存储中。一旦你的连接状态变为“**正常**”——就全部设置完成了！

现在你可以看到 API 钱包的地址和名称，你可以用它在交易所界面中识别它，以及它的到期日期：

<figure><img src="/files/4074f22d3dbc9daee80398aef28af4cf79b6edf3" alt=""><figcaption></figcaption></figure>

Hyperliquid 的 API 钱包每 6 个月过期一次。在它到期之前，我们会提醒你，你可以使用你的 MetaMask 钱包无缝地将当前 API 钱包替换为新的。

### 手动设置

如果你用来控制 Hyperliquid 账户的钱包不是 MetaMask，你可以手动在 goodcryptoX 中设置连接。

{% stepper %}
{% step %}

#### 创建 API 钱包

将你的钱包连接到 Hyperliquid。 \
前往 `更多 -> API`。 \
为你的 API 钱包选择一个名称（例如 goodcryptoX），点击“生成”API 钱包地址，然后点击“授权 API 钱包”：

<figure><img src="/files/62ff936aad92b88768cef63e218360bb3e99ba58" alt="" width="563"><figcaption></figcaption></figure>

随后你会看到一个弹窗，其中包含你的 API 钱包私钥——请复制它，之后你需要将其添加到 goodcryptoX 中——这个密钥不会再次显示。还要点击“Days Valid”字段中的“MAX”——这会将钱包的有效期设置为 6 个月（否则它会在 90 天后过期）：

<figure><img src="/files/3c12ddc0194346a03ac8d09a955b41ecbf87584c" alt="" width="375"><figcaption></figcaption></figure>

准备好后，点击“授权”，并使用你的钱包签署交易（无需 gas）。
{% endstep %}

{% step %}

### 批准 Builder 费用

要在 Hyperliquid 上使用 goodcryptoX 进行交易，你需要允许我们 [收取费用](/goodcryptox-zh/yong-xu-he-yue-dex/hyperliquid/gou-jian-zhe-fei-yong.md) ，因为 Hyperliquid 没有在界面中提供此功能，所以我们为此构建了一个专用的 [工具](https://goodcrypto.app/hype/builder-fees) 工具。

前往我们的 [Builder 费用管理工具](https://goodcrypto.app/hype/builder-fees) 并连接控制你的 Hyperliquid 账户的钱包：

<figure><img src="/files/37ea334251b5d5c7ebb9b2361b72046daa2e9fe9" alt="" width="563"><figcaption></figcaption></figure>

连接完成后，点击批准 goodcryptoX builder 费用，并使用你的钱包签署交易：&#x20;

<figure><img src="/files/9f4c53884c244f80fde70b3bdd5806592dcb89be" alt="" width="563"><figcaption></figcaption></figure>

> 虽然你批准的是 1% 的 builder 费用上限，但实际上只会批准 0.1% 的期货费用（由 Hyperliquid 强制执行）。统一的 1% 输入只是 Hyperliquid 对此功能实现中的一个视觉限制

{% hint style="info" %}
如果你创建 Hyperliquid 账户时使用的是 **电子邮件**，那么在你批准 builder 费用之前，你需要先将钱包导出到 MetaMask（或其他钱包）。

前往 Hyperliquid 界面的设置，并选择“导出电子邮件钱包”
{% endhint %}
{% endstep %}

{% step %}

### 将 API 钱包添加到 goodcryptoX：

在我们的应用中（网页版或移动端），前往：

```
设置 -> 交易所 -> Hyperliquid -> 手动添加 API 钱包
```

将控制你的 Hyperliquid 账户的钱包地址（不是你的 API 钱包地址）添加到“Hyperliquid 账户地址”。\
将你创建的 API 钱包私钥（不是主钱包的私钥）添加到“API 钱包私钥”，然后点击“保存并验证”：

<figure><img src="/files/f9c7ad69ebe4bb9bc435a4677c527985a34cb6f8" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

你的 API 钱包现在将保存在我们的安全存储中。一旦你的连接状态变为“**正常**”——就全部设置完成了！

现在你可以看到 API 钱包的地址和名称，以及它的到期日期：

<figure><img src="/files/4074f22d3dbc9daee80398aef28af4cf79b6edf3" alt=""><figcaption></figcaption></figure>

在它到期之前，我们会提前提醒你，这样你就有足够的时间将其替换为新的。


---

# 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.goodcrypto.app/goodcryptox-zh/yong-xu-he-yue-dex/hyperliquid/ru-he-lian-jie.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.
