When I want to create a wallet in EOS, I get this error:
$ cleos wallet list
Wallets
[]
$ cleos wallet create
Either indicate a file using "--file" or pass "--to-console"
When I want to create a wallet in EOS, I get this error:
$ cleos wallet list
Wallets
[]
$ cleos wallet create
Either indicate a file using "--file" or pass "--to-console"
Either indicate a file using "--file" or pass "--to-console"
You need to specify the location to write password output to:
$ cleos wallet create --to-console
$ cleos wallet create -n <wallet-name> --to-console
See the dev documentation:
Options
-n, --name TEXT - 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
Usage
Shell
$ ./cleos wallet create --to-console
$ ./cleos wallet create -n second-wallet --to-console
$ ./cleos wallet create --name my-new-wallet --file my-new-wallet.txt
$ ./cleos wallet create --to-console
$ ./cleos wallet create -n second-wallet --to-console
$ ./cleos wallet create --name my-new-wallet --file my-new-wallet.txt
Basically, you just need to use one between the following commands, in your command line:
cleos wallet create --to-console
cleos wallet create --file test.txt
Please, note that running this command, you create an empty waller, and you need to keep note of the “PASSWORD” provided, to access the wallet in the future.
Moreover, I use to specify also the name - that is 12 char long - of the wallet with the option -n
:
cleos wallet create -n randaccountx