跳至主要内容
此页面是从英文翻译而来的。请注意,与原始页面相比,可能会出现错误或差异。真实的文档来源应始终是英文版本。

how to create a wallet

Goal

Create a wallet using keosd.

Before you begin

Make sure you meet the following requirements:

  • Familiarize with the cleos wallet create command and its parameters.
  • Familiarize with the other cleos wallet commands.
  • Install the currently supported version of cleos.

[[info | Note]] | cleos is bundled with the Antelope software. Installing Antelope will also install cleos.

Steps

Perform the step below:

Create a default or named wallet and save the wallet password to a file:

cleos wallet create [-n named_wallet] -f <file_to_save_pwd>

Where file_to_save_pwd is the name of the file to write the wallet password to and named_wallet is an optional parameter to assign a name to the wallet.

Some examples are provided below:

  • Create a default wallet and save the password to the file default_wallet.pwd:

Example Output

cleos wallet create -f default_wallet.pwd
Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
saving password to default_wallet.pwd
  • Create a named wallet my_wallet and save the password to the file my_wallet.pwd:

Example Output

cleos wallet create -n my_wallet -f my_wallet.pwd
Creating wallet: my_wallet
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
saving password to my_wallet.pwd