恢复帐号

要还原文件库,请使用以下命令,并按照提示使用现有种子设置新文件库

为您的操作系统选择正确的命令。

  • 视窗: \haven-wallet-cli.exe --restore-deterministic-wallet
  • MacOS和Linux: ./haven-wallet-cli --restore-deterministic-wallet

在终端中输入命令后,只需单击 return 要么 enter 在键盘上开始帐户还原。您的CLI应该返回说明:

Specify a new wallet file name for your restored wallet (e.g., MyWallet).
Wallet file name (or Ctrl-C to quit):

为您的钱包创建一个唯一的名称,例如 my-unique-wallet 然后点击 enter 要么 return 在键盘上。您的CLI应该返回说明:

Generating new wallet…
Specify Electrum seed:

输入您的种子短语的第一个单词,然后单击 enter 要么 return 在键盘上。然后,您的CLI应该返回说明:

Electrum seed continued:

在此处输入种子短语的第二个单词。一旦你点击 输入, CLI 会继续说 Electrum seed continued: 。只需对种子的每个单词继续执行此过程,直到获得第24个单词。一旦点击 enter 要么 return CLI会在第24个字上说:

Enter seed offset passphrase, empty if none:

如果您的钱包中有资金,则可以通过点击跳过此步骤 enter 要么 return 在键盘上。然后,您的CLI应显示一条说明:

Enter a new password for the wallet:

创建并输入一个强密码,然后单击 enter 要么 return 在键盘上。 CLI现在应该向您显示一条说明:

Confirm password:

输入密码,然后单击 enter 要么 return 在键盘上。 CLI现在应该为您显示种子短语,因此请确保它与您之前保存的种子短语匹配。现在很可能会看到错误,因为您的保管库未连接到 daemon 如:

Error: wallet failed to connect to daemon: http://localhost:17750. Daemon either is not started or wrong port was passed. Please make sure daemon is running or change the daemon address using the 'set_daemon' command.

这是正常现象,解决问题的说明也将在下面分享。现在,CLI将另外提供以下返回说明:

Restore from specific blockchain height (optional, default 0):

如果您知道钱包的创建高度,则可以在此处输入或简单输入 0enter 要么 return 在键盘上。 CLI现在将返回说明

The daemon is not set up to background mine.
With background mining enabled, the daemon will mine when idle and not on battery.
Enabling this supports the network you are using, and makes you eligible for receiving new haven
Do you want to do it now? (Y/Yes/N/No):

您可以输入 no 然后打 return 要么 enter 在键盘上跳过此操作不会对您的体验造成不利影响。 CLI现在会说:

If you are new to Haven, type "welcome" for a brief overview.
Error: wallet failed to connect to daemon: http://localhost:17750. Daemon either is not started or wrong port was passed. Please make sure daemon is running or change the daemon address using the 'set_daemon' command.

在此阶段,您有两个选择。

1. 运行本地节点:即使在快速的互联网连接下,也可能需要花费数天才能下载。为此,假设您位于同一CLI目录中,请在CLI中打开另一个选项卡,然后键入 ./havend
2. 运行一个远程节点:这要快得多,并且通常在30分钟内即可同步。远程节点可以看到您的IP,因此,如果有问题,请使用VPN。您可以了解有关远程节点的更多信息 这里。否则,您可以键入以下命令之一来设置守护程序,然后单击 enter 要么 return 在键盘上。

  • set_daemon remote.eu.havenprotocol.org:17750 trusted
  • set_daemon nodes.hashvault.pro:17750 trusted
  • set_daemon remote.haven.miner.rocks:17750 trusted

现在,您已经设置了一个守护程序,CLI现在应该显示以下内容:

Error: Expected trusted or untrusted, got 17750: assuming untrusted
Daemon set to remote.eu.havenprotocol.org:17750, untrusted
[wallet [first-five-letters-of-address] (out of sync)]

最后一步是输入 refresh 然后点击 enter 要么 return 您的 CLI 保险库现在将开始同步。您的 CLI 应该显示已同步的块数量和剩余的块数量,如:

Height 10940 / 762937

保管库同步后,您可以随意使用钱包。您的CLI应该显示以下文本:

Currently selected account: [0] Primary account
Tag: (No tag assigned)
ONSHORE - balance: 0.000000000000, unlocked balance: 0.000000000000,
OFFSHORE - balance: 0.000000000000 xUSD, unlocked balance: 0.000000000000 xUSD

如果看不到上面的文本,只需键入 balance。如果您想查看地址,请输入 address 然后点击 enter 要么 return 在键盘上。现在,您已经成功还原了保管库,除非您要还原其他钱包,否则不必重复此过程。下次登录时,只需使用适用于您的操作系统的命令启动钱包,而无需包括 --restore-deterministic-wallet 旗。您可以输入以下任一命令来实现:

  • 视窗: \haven-wallet-cli.exe
  • MacOS和Linux: ./haven-wallet-cli

重新登录 CLI 时会询问钱包名称,因此请输入您刚刚恢复到要打开的钱包的名称。 CLI 将识别您的保管库,然后询问您的密码。您可能需要设置一个 daemon 要么 refresh 可以通过复制 set_daemon 上面的命令然后键入 refresh.

最后,要结束会话,您可以输入 exit 进入终端。

以前 安装
下一个 创建帐号
zh_CN简体中文