创建wallet
之前创建钱包,直接输入下面的命令就可以,现在提示ERROR
eos/build/programs/cleos$ ./cleos wallet create -n wallet2
ERROR: Either indicate a file using "--file" or pass "--to-console"
通过help查看,需要携带参数-f或者--to-console
eos/build/programs/cleos$ ./cleos wallet create -help
ERROR: ExtrasError: [-help]
Create a new wallet locally
Usage: ./cleos wallet create [OPTIONS]
Options:
-n,--name TEXT=default The name of the new wallet
-f,--file TEXT Name of file to write wallet password output to. (Must be set, unless "--to-console" is passed
--to-console Print password to console.
加--to-console
eos/build/programs/cleos$ ./cleos wallet create -n wallet2 --to-console
Creating wallet: wallet2
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5JmK7s9Laf5YJkSw8J18RvDtUAJaP68mP86cvXJrk3fTGpqrVdj"
加-f
eos/build/programs/cleos$ ./cleos wallet create -n wallet3 -f wallet3.txt
Creating wallet: wallet3
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
saving password to wallet3.txt
打开当前命令行所在目录下的wallet3.txt,发现文件的内容是自动生成的密码

网友评论