更新时间:2024-11-25 GMT+08:00

通过Staking Launchpad获取密钥

Staking Launchpad是一个开源应用程序,可帮助你成为质押人。 它将指导你选择客户端、生成密钥并将你的以太币存入质押存款合约。 会提供一份清单,确保已经涵盖安全设置验证者需要的所有内容。

Staking Launchpad支持以太坊主网和Holesky测试网,建议现在Holesky测试网上进行设置和操作。

  1. 了解质押。

    Staking Launchpad提供了一个质押清单,供用户了解和学习质押。

    图1 质押清单

  2. 选择执行层和共识层客户端。

    如果您想运行自己的节点,可以查看各种 Eth1和Eth2提供商的选项并设置您的节点。如果你您选择使用购买华为云Full node (Staking supported)节点,Web3节点引擎服务将作为您的执行节点和共识节点提供商,完成执行节点和共识节点的创建工作,支持您快速高效地完成质押流程。

    目前Web3节点引擎服务支持的共识层客户端有Prysm和Lighthouse;支持的执行层客户端有Geth。

    图2 执行客户端选择
    图3 共识客户端选择

  3. 生成密钥。

    使用以太坊官方提供的密钥生成工具,生成并保存密钥文件。

    采用Download CLI app方式,使用命令行工具 deposit command line interface进行创建。

    图4 密钥生成工具选择

    首先从Github上,下载 deposit command line interface

    图5 下载密钥生成工具

    提取下载的文件到个人终端机器上。使用您的终端/Powershell 导航到工具所在文件夹。执行如下命令:

    Linux/Mac
    ./deposit new-mnemonic
    Windows
    .\deposit.exe new-mnemonic

    运行命令成功后,根据命令提示来执行相应操作:

    [root@ecs-devnet01 ~]# ./deposit new-mnemonic
    ***Using the tool on an offline and secure device is highly recommended to keep your mnemonic safe.***
    Please choose your language ['1. العربية', '2. ελληνικά', '3. English', '4. Français', '5. Bahasa melayu', '6. Italiano', '7. 日本語', '8. 한국어', '9. Português do Brasil', '10. român', '11. Türkçe', '12. 简体中文']:  [English]:
    Please choose the language of the mnemonic word list ['1. 简体中文', '2. 繁體中文', '3. čeština', '4. English', '5. Italiano', '6. 한국어', '7. Português', '8. Español']:  [english]:
    Please choose how many new validators you wish to run: 1
    Please choose the (mainnet or testnet) network/chain name ['mainnet', 'goerli', 'sepolia', 'zhejiang']:  [mainnet]: goerli
    Create a password that secures your validator keystore(s). You will need to re-enter this to decrypt them when you setup your Ethereum validators.:
    Repeat your keystore password for confirmation:
    This is your mnemonic (seed phrase). Write it down and store it safely. It is the ONLY way to retrieve your deposit.
    warm merry prevent invalid crash potato tongue portion rapid render chair outdoor summer red chief lesson firm culture infant or island bread fade property 
    Press any key when you have written down your mnemonic.
    Please type your mnemonic (separated by spaces) to confirm you have written it down. Note: you only need to enter the first 4 letters of each word if you'd prefer.
    图6 完成质押密钥生成

  4. 上传存款数据。

    将生成的密钥文件上传到操作台,并确定右上角选择了正确的网络类型。如果您在错误的网络上生成密钥,控制台将阻止您继续前进。

    图7 上传存款数据

  5. 连接钱包。

    将您的钱包连接到操作台,并确保账户中拥有32个以太币。

    图8 连接钱包

  6. 检查质押信息。

    查看选择的操作清单,确认信息是否正确。

    图9 检查质押信息

  7. 发送质押交易。

    检查要求并单击继续,准备就绪后,交易将提交到信标链中。到这一步,就已经成功将初始存款提交到信标链中,后续则是启动客户端来完成质押操作。

    图10 发送质押交易

    实践操作参考Staking Launchpad指南,更详细的操作步骤请参阅Staking Launchpad (Goerli)Staking Launchpad