# 快捷模式

## 1.前置準備

1. 準備一臺Windows或蘋果電腦，能打開下面兩個網站：
   * <https://xhash.com>
   * <https://etherscan.io>
2. 在[xhash.com](https://xhash.com/signUp)上用郵箱注冊一個賬戶
3. 在手機上安裝一款支持WallectConnect的錢包，比如MetaMask，imToken

{% hint style="info" %}
點擊[這裏](https://github.com/xhash-com/xhash-auto-staking-client#supported-wallet)查看 [xhash-auto-staking-client](https://github.com/xhash-com/xhash-auto-staking-client) 支持的錢包APP列表
{% endhint %}

## 2.XHash客戶端概述&#x20;

[**`xhash-auto-staking-client`**](https://github.com/xhash-com/xhash-auto-staking-client.git)是xhash在以太坊官方推薦的驗證者密鑰對生成器[`wagyu-key-gen`](https://github.com/stake-house/wagyu-key-gen)基礎上開發的eth快速質押程序。該程序完全開源，用戶可以在github網站上查看及下載運行。

## 3.下載地址

github：<https://github.com/xhash-com/xhash-auto-staking-client/releases/tag/v1.2.1>

## 4.使用方法

### 4.1 創建新的助記詞或導入已有助記詞

雙擊打開下載的程序，選擇`創建新助記詞`或`導入現有的助記詞。`

{% hint style="info" %}
為安全起見，我們建議您斷開互聯網連接以完成此步驟。
{% endhint %}

<figure><img src="/files/2cZD6zd49x6sLSNZqKR5" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/6Xbxx6wql1RzzbVzkTQl" alt=""><figcaption><p>創建新助記詞</p></figcaption></figure>

將助記詞記在安全的地方。單擊`下一步`以繼續。

{% hint style="info" %}
**注意：**&#x7576;您希望提取資金時，助記符是生成取款密鑰的唯一方法。請確保您已將其安全保存，最好是離線。
{% endhint %}

### 4.2 創建驗證者秘鑰對

設置要創建的驗證者key數量及密碼，確保將您設置的密碼保存在安全的地方。然後單擊 `下一步`。

<figure><img src="/files/IgqN6xYcqPcoII2YtCnj" alt=""><figcaption></figcaption></figure>

重新輸入您設置的密碼，然後單擊`下一步`。

<figure><img src="/files/AfEEpJAwj34YPVAfywj7" alt=""><figcaption></figcaption></figure>

選擇文件夾來保存生成的秘鑰。

<figure><img src="/files/jNdX9N8C5GCeDv6M4XvS" alt=""><figcaption></figcaption></figure>

創建完成，在對應文件夾下會生成兩個不同文件，分別是keystore 文件（keystore-xxxxxxx.json）和deposit data文件（deposit\_data-xxxxxx.json）。

<figure><img src="/files/AH1NTlulQlVz2qp2f3m7" alt=""><figcaption></figcaption></figure>

### 4.3 驗證者存款

創建秘鑰完成後，點擊下一步進入存款頁面，選擇剛才生成的deposit data文件。

<figure><img src="/files/ODWNvOTUlTmU9bF8kvu6" alt=""><figcaption></figcaption></figure>

deposit文件校驗成功後，點擊`下一步`。

<figure><img src="/files/BXhsjkFBZTtCQlUDQdPo" alt=""><figcaption></figcaption></figure>

點擊WalletConnect，出現二維碼，使用支持WalletConnect的錢包掃描二維碼，連接錢包。

{% hint style="info" %}
從這一步開始，需要連接互聯網。
{% endhint %}

<figure><img src="/files/nQ7LkyUObXgAiMlu3gjY" alt=""><figcaption></figcaption></figure>

連接成功後，會顯示錢包地址及餘額，然後點擊`下一步`。

<figure><img src="/files/BV6SBKd5Lw3yeKZBk68n" alt=""><figcaption></figcaption></figure>

在驗證者列表中，您可以選擇常規模式或者批量模式，存在多個準備存款的驗證者時，可以選擇批量模式以便減少您確認交易的次數，批量模式中單次發送交易最多可以處理100條存款。

#### 4.3.1 常規模式

在驗證者列表中，可以查看到當前驗證者狀態，點擊`確認存款`，會連接錢包發起向eth2.0合約地址發起存款交易，轉入32個eth。此時錢包上會出現對應交易，用戶同意簽名後，交易發送。

{% hint style="info" %} <mark style="color:red;">**注意：**</mark>eth2.0質押合約地址&#x70BA;**`0x00000000219ab540356cBB839Cbe05303d7705Fa`**，充值時，用戶需仔細核對充值地址。
{% endhint %}

<figure><img src="/files/ODtCikBA4mFLyCQjwCiI" alt=""><figcaption></figcaption></figure>

完成充值後，點擊`下一步`。

#### 4.3.2 批量模式

點擊滑塊切換到批量模式，頁面將爲您呈現您提交的deposit文件的存款情況，修改您要發送的存款數量，確保發送金額小於可用的金額，然後點擊確認

<figure><img src="/files/hc3Yau07GisDChlP2ZBf" alt=""><figcaption></figcaption></figure>

點擊確認存款，存款的金額將是驗證者數量\*32，並等待發送成功

<figure><img src="/files/UgwZDqMwZgijEr2X4cFh" alt=""><figcaption></figcaption></figure>

### 3.4 上傳keystore到XHash

輸入郵箱和密碼，點擊登錄按鈕，登錄XHash。

<figure><img src="/files/fpBJpBA875pJCTw0amI8" alt=""><figcaption></figcaption></figure>

選擇之前生成的keystore文件，輸入對應的秘鑰密碼，點擊`上傳`。

<figure><img src="/files/jdO1i817QyZoP3TYYVrg" alt=""><figcaption></figcaption></figure>

上傳keystore成功，關閉程序。

<figure><img src="/files/E4erGnG6R0WdBnI1wNMk" alt=""><figcaption></figcaption></figure>

## 5.查看驗證者情況

登錄[XHash控制台](https://www.xhash.com/stakingdashboard)，查看已質押的驗證者情況。

<figure><img src="/files/qqgb8aDsg9DTCE8baIP8" 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.xhash.com/cn/staking/fei-tuo-guan-zhi-ya/kuai-jie-mo-shi.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.
