# 快捷模式

## 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="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2F3bLxK4sYcHWhYNWK4OPm%2Fxhash%20client%EF%BC%88%E9%A6%96%E9%A1%B5%EF%BC%89.png?alt=media&#x26;token=f0c5631c-a526-4a99-8a7e-611af17a31ff" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2FBSiPAG3CjYYvMt4ebAwo%2Fxhash%20client%EF%BC%88%E5%88%9B%E5%BB%BA%E5%8A%A9%E8%AE%B0%E8%AF%8D%EF%BC%89.png?alt=media&#x26;token=1cb43fd9-eb60-43ca-b09d-2b58006380ef" alt=""><figcaption><p>創建新助記詞</p></figcaption></figure>

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

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

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

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2FMRFJeMvxSfmac7oxyOtf%2Fxhash%20client%EF%BC%88%E5%88%9B%E5%BB%BA%E7%A7%98%E9%92%A5%EF%BC%89.png?alt=media&#x26;token=cd34089d-33f2-4a7d-a87b-0eecb79377de" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2F3y6qT0PkgGmA1Hm67lfw%2Fxhash%20client%EF%BC%88%E7%A1%AE%E8%AE%A4%E5%AF%86%E7%A0%81%EF%BC%89.png?alt=media&#x26;token=9d15c707-66ff-4adc-91ae-8cc44c53ce7a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2FLpy37gHmSr5EMo3PgHDF%2Fxhash%20client%EF%BC%88%E9%80%89%E6%8B%A9%E6%96%87%E4%BB%B6%E5%A4%B9%EF%BC%89.png?alt=media&#x26;token=f76a70b4-35cb-4d69-9a27-f4d6446fbd8d" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2F9197CEnSxZ5CEQM3PsBU%2Fxhash%20client%EF%BC%88%E5%AE%8C%E6%88%90%E5%88%9B%E5%BB%BA%E7%A7%98%E9%92%A5%EF%BC%89.png?alt=media&#x26;token=9311ec41-5193-4eae-b53d-f316439618ae" alt=""><figcaption></figcaption></figure>

### 4.3 驗證者存款

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2FhAwh4WeVSyPsQo3kfNpC%2Fxhash%20client%EF%BC%88%E4%B8%8A%E4%BC%A0deposit%E6%96%87%E4%BB%B6%EF%BC%89.png?alt=media&#x26;token=b2ca927a-09b5-48a8-b041-1d132393629c" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2FMwTU4JptjRSqYSxQpdEr%2Fxhash%20client%EF%BC%88deposit%E6%96%87%E4%BB%B6%E6%A0%A1%E9%AA%8C%E6%88%90%E5%8A%9F%EF%BC%89.png?alt=media&#x26;token=f5c2e5a1-7ee7-4e0d-ad5b-43d9eb9b9804" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2F9KBQSYDOrDL2G4E9mPor%2Fxhash%20client%EF%BC%88%E8%BF%9E%E6%8E%A5%E9%92%B1%E5%8C%85%EF%BC%89.png?alt=media&#x26;token=3a48d156-f1d8-469c-b227-b141a6a43589" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2FU6D6ISLdsecZ4oc2hDrN%2Fxhash%20client%EF%BC%88%E9%92%B1%E5%8C%85%E8%BF%9E%E6%8E%A5%E6%88%90%E5%8A%9F%EF%BC%89.png?alt=media&#x26;token=58b6dd54-1d7a-42aa-a09e-78969d47b30d" 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="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2FCjBzJUqTuFwXbn4I2trY%2Fimage.png?alt=media&#x26;token=c6812df2-0674-4195-98fe-ffd06da69809" alt=""><figcaption></figcaption></figure>

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

#### 4.3.2 批量模式

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2FpPhIDuffnpBWfQ2t6C6t%2Fimage.png?alt=media&#x26;token=02d21d0b-55e0-44d8-acf3-82bd42e2538f" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2FyZPMNxCa60xistzhBbuq%2Fimage.png?alt=media&#x26;token=3a2db534-62b0-40a0-b832-64623a580615" alt=""><figcaption></figcaption></figure>

### 3.4 上傳keystore到XHash

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2F1W4OiV33plfRR8lS4Bmx%2Fxhash%20client%EF%BC%88%E7%99%BB%E5%BD%95xhash%EF%BC%89.png?alt=media&#x26;token=0c327ded-96bb-47e4-9816-696f60e119f2" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2Fq7s7XtTo0Kre2XNWttat%2Fxhash%20client%EF%BC%88%E4%B8%8A%E6%AC%A1keystore%EF%BC%89.png?alt=media&#x26;token=07048929-b6f3-43db-8bfa-f94f29ca99d7" alt=""><figcaption></figcaption></figure>

上傳keystore成功，關閉程序。

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2F93H4VdKFh3aWqOw5HkC5%2Fxhash%20client%EF%BC%88%E7%BB%93%E6%9D%9F%EF%BC%89.png?alt=media&#x26;token=b2d74e2d-c2f6-4e39-8460-9b91e61b0e86" alt=""><figcaption></figcaption></figure>

## 5.查看驗證者情況

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

<figure><img src="https://2148531034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrZyyGqPcJPJE7MpJqhzI%2Fuploads%2FlEbrNJTfOrPVvlW9kjjI%2F%E8%B4%A8%E6%8A%BC%E9%A1%B5%E9%9D%A2%EF%BC%88%E4%BB%AA%E8%A1%A8%E6%9D%BF%EF%BC%89.png?alt=media&#x26;token=e4788985-11d5-43d2-b754-7baa24e58d4e" alt=""><figcaption></figcaption></figure>
