cast-wallet-new - Create a new random keypair.
cast wallet new
[options] [path]
Create a new random keypair.
If path is specified, then the new keypair will be written to a JSON keystore encrypted with a password. (path should be an existing directory.)
-p
--password
Triggers a hidden password prompt for the JSON keystore.
Deprecated: prompting for a hidden password is now the default.
--unsafe-password
password
Password for the JSON keystore in cleartext.
This is unsafe to use and we recommend using --password
instead.
Environment: CAST_PASSWORD
{{#include common-options.md}}
-
Create a new keypair without saving it to a keystore:
cast wallet new
-
Create a new keypair and save it in the
keystore
directory:cast wallet new keystore