The wallet-create
command is used to create a new wallet in Mintlayer. This command generates a wallet file at a specified path and manages the storage of the seed phrase based on user preference.
wallet-create <WALLET_PATH> <WHETHER_TO_STORE_SEED_PHRASE> [MNEMONIC]
<WALLET_PATH>
: The file path where the wallet file will be saved. This path should be accessible and writable.<WHETHER_TO_STORE_SEED_PHRASE>
: Determines whether the seed phrase should be stored in the wallet file or not.
store-seed-phrase
: Stores the seed phrase in the wallet file.do-not-store-seed-phrase
: The seed phrase will not be stored in the wallet file and will only be displayed on the screen. This option is recommended for enhanced security.[MNEMONIC]
: Optional. If provided, it should be a mnemonic phrase (12, 15, or 24 words) enclosed in quotes. If not specified, a new mnemonic phrase will be generated and printed.-h, --help
: Displays help information about the wallet-create
command.Creating a Wallet and Storing the Seed Phrase:
wallet-create /path/to/wallet.dat store-seed-phrase
This command creates a new wallet at /path/to/wallet.dat
and stores the seed phrase in the wallet file.
Creating a Wallet Without Storing the Seed Phrase:
wallet-create /path/to/wallet.dat do-not-store-seed-phrase
This command creates a new wallet at /path/to/wallet.dat
but does not store the seed phrase in the wallet file for added security.
Creating a Wallet with a Specified Mnemonic Phrase:
wallet-create /path/to/wallet.dat store-seed-phrase "word1 word2 word3 ... word24"
This command creates a new wallet using a specified 24-word mnemonic phrase and stores the seed phrase in the wallet file.