# 如何质押以太坊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="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/aKDY4KgNPBSVlf27PxfR/deposit.png" 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="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/CnYnraxC0gWwdYSy4yu0/terminal.PNG" alt=""><figcaption><p>Open a terminal</p></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/wa7w0r9ay7RS3HVYuXnJ/cd.PNG" 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="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/UBjZ0d6eHS1esVOLKn9q/gg.PNG" alt=""><figcaption><p>Generate keys &#x26; <code>deposit_data</code></p></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/Rp0QD2bPB5u7v8sH6KUZ/depo.png" 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="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/pTZo2lgrSqXvc91PK3G1/dd.png" alt=""><figcaption><p>Eth2 Validator Dashboard</p></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/fVJ84ceWwK5o7eJr4HGU/image.png" alt=""><figcaption><p>Make Deposit - Hosting your own nodes</p></figcaption></figure>

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

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

<figure><img src="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/vNbdBiORn1STsg6ZoKyP/check.png" 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 %}
