# 如何质押以太坊ETH？

使用 [**ChainUp Cloud**](https://cloud.chainup.com/). 在以太坊上设置质押的简短指南。

### **Prerequisites** 先决条件

**a.**  兼容的钱包（目前仅支持 Metamask [**Metamask**](https://metamask.io/)），可容纳超过 32 个 Eth

**b.**  生成 deposit\_data-timestamp.json，可通过 deposit-cli 工具完成。

{% hint style="info" %}
具体来说，我们真正需要的是 deposit\_data-timestamp.json 中的 withdrawal\_credentials
{% endhint %}

### 1. 生成 deposit\_data/withdrawal\_credentials

**步骤 1：**&#x5728;此处下载存款 CLI 应用程序，确保您已为您的操作系统选择了正确的应用程序。

{% hint style="warning" %}
请确保您是从以太坊基金会的官方 GitHub 帐户下载的 - <https://github.com/ethereum/staking-deposit-cli/releases/>
{% endhint %}

<figure><img src="/files/Kj8ESdLxaXtoGyDyYOpt" alt=""><figcaption><p>Select the corresponding executable for your operating system</p></figcaption></figure>

**Step 2:** Once the download is complete, uncompress the downloaded file. **步骤 2**：下载完成后，解压下载的文件。

**Step 3:** Open your command line/terminal. **步骤 3：**&#x6253;开您的命令行/终端。

<figure><img src="/files/vBf3kcJDqrjKK6lwY5wr" alt=""><figcaption><p>Open a terminal</p></figcaption></figure>

&#x20;**步骤 4**：导航（cd）到包含可执行 **`deposit`**  存款文件的目录。

<figure><img src="/files/E97T81QHpmU1isKuXRxL" alt=""><figcaption><p><code>cd</code> to the directory containing the executable</p></figcaption></figure>

**步骤 5：**&#x4F7F;用以下命令运行可执行文件   `deposit.exe new-mnemonic --num_validators 1 --chain mainnet`（适用于 Windows）和   `./deposit new-mnemonic --num_validators 1 --chain mainnet`  （适用于 Linux 或 MacOS）。

<figure><img src="/files/f6HzbnEuhHzfXkj0YX2P" alt=""><figcaption><p>Generate keys &#x26; <code>deposit_data</code></p></figcaption></figure>

&#x20;**步骤 6：请记下助记词**并找到 deposit\_data 文件

<figure><img src="/files/MILXuaq2PJN1ib4BOpL8" alt=""><figcaption><p>deposit_data 文件稍后将上传到 ChainUp Cloud</p></figcaption></figure>

{% hint style="info" %}
您可以在此处找到以太坊基金会推荐的替代密钥生成工具。
{% endhint %}

### 2. 上传  `deposit_data`/`withdrawal_credentials`

步骤 1：单击 Ethereum 2（侧边栏）。确保您位于 Ethereum2 子页面中，然后单击 Stake 按钮。

<figure><img src="/files/f7lbb2iDvIcbnjLSseIS" alt=""><figcaption><p>Eth2 Validator Dashboard</p></figcaption></figure>

&#x20;步骤 2：选择您要使用的网络并连接您的  [**Metamask**](https://metamask.io/) 钱包。

<figure><img src="/files/tw4H0o435CNSsnRr5HSB" alt=""><figcaption><p>Make Deposit - Hosting your own nodes</p></figcaption></figure>

**步骤 3：**&#x5BFC;入存款数据（`deposit_data.json`）- 这是之前从 `deposit-cli` 工具生成的。

**步骤 4：**&#x5355;击立即检查，应该会出现一笔交易供您确认。

<figure><img src="/files/z0rmToOeXNDgjDgV0CTc" alt=""><figcaption><p>Submit the transaction</p></figcaption></figure>

&#x20;:fire: **步骤 5：**&#x7B49;待交易在链上确认，就这样！您的 Eth 现在已质押并赚取收益！

[**Sign up now**](https://cloud.chainup.com/app/register) 立即注册开始质押并探索 ChainUp Cloud 的奇妙之处！

{% hint style="info" %}
**随机事实：**&#x43;hainUp 成立于 2017 年，总部位于新加坡，是区块链技术和加密生态系统解决方案的领导者。
{% endhint %}


---

# 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.chainupcloud.com/zhong-wen/introduction/for-investors/how-to-stake.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.
