Creating a wallet

Creating a wallet

# Use Keychain storage on macOS
./eth-cli create --output keychain --name myWallet [--force]
# Securely stores in system keychain

# Save to cloud storage and local file
./eth-cli create --output /path/to/save/myWallet.json,google,box,dropbox,keychain --name myWallet
# Will save to cloud storage and specified local path

# Save only to local file (if you don't want to use cloud storage)
./eth-cli create --output fs --path /path/to/save/myWallet.json [--force]
# You can manually upload this encrypted file to any cloud storage

# Old method for local file (still supported)
./eth-cli create --output /path/to/save/myWallet.json --name myWallet
# You can manually upload this encrypted file to any cloud storage

Storage Options

  • {filepath}, like /tmp/test.json - local file system

    • -o | --output /path/to/save/wallet.json

  • google - Google Drive

    • -o | --output google

  • box - Box

    • -o | --output box

  • dropbox - Dropbox

    • -o | --output dropbox

  • kechain - Apple macOS Keychain

    • -o | --output keychain

Example

# Save to cloud storage (without saving locally)
./eth-cli create --output google,box,dropbox --name myWallet01 [--force]
# Will save to /MyWallet/{name}.json in cloud storage

1 Set AES password:

2 Set passphrase:

3 If you select an OAuth cloud disk, a browser web page will be opened to request authorization. This authorization is used to upload the private key to the program.

After the authorization is completed, the program will upload the private key file to the cloud storage and display the address of the newly created wallet.

Before you officially use this wallet address, please use the get command as prompted to confirm whether the private key is stored correctly. A commands list is given after create.

How to check the public key address of a new wallet?

./eth-cli get -i dropbox -n myWallet01

The browser will be opened, and you will need to explicitly authorize the program to access the key file stored in your cloud drive. After authorization, the program will prompt you to enter the AES key.

You will be asked if you used a passphrase. The program can't determine or verify the passphrase because it acts as a seed for the private key. Entering an incorrect passphrase generates a different private key and address without an error message. Remember your passphrase.

Then is

Then enter your passphrase, and the program will display the address you just created.

If you use local storage or Keychain (macOS only), you do not need to go through the OAuth authorization process. A JSON wallet file is generated in local storage, which you can back up anywhere. You just need to ensure that your two passwords are secure.

Last updated