EOS小白学习之番外(一)钱包的常见的错误

本篇记录一些常见的错误及其处理,大饼果子非C++出身,如有错误,欢迎指出


1. 找不到wallet:

现场:

$ cleos transfer eosio dabingguozi "10.0000 SYS"

"/opt/eosio/bin/keosd" launched

Error 3120006: No available wallet

Ensure that you have created a wallet and have it open

如果存在default钱包,那么可能是keosd重启过,怎么确定自己有钱包,去到config.ini文件里查看,如果wallet-dir="."

那么钱包就在这里

# cd ~/eosio-wallet

# ls

config.ini  default.wallet

我已经有了default钱包,那么要做的就是

$ cleos wallet open

Opened: default

这样就可以对钱包进行操作了


2. 钱包锁定

现场:

$ cleos transfer eosio dabingguozi "10.0000 SYS"

Error 3120003: Locked wallet

Ensure that your wallet is unlocked before using it!

这是因为钱包锁定了,需要用密码打开

$ cleos wallet unlock --password ***

Unlocked: default

这样就可以操作了


猜你喜欢

转载自www.cnblogs.com/dabingguozi/p/9349317.html