curl -LO https://harmony.one/hmycli && mv hmycli hmy && chmod +x hmy
or alternatively use this, if the above version will not work for creating a wallet below (for MacOSX users) and also note that instead of using ./hmy you have to use ./hmy.sh:
curl -O https://raw.githubusercontent.com/harmony-one/go-sdk/master/scripts/hmy.shchmod u+x hmy.sh./hmy.sh -d
Creation of a new account is done as a function of a generated
bip39 mnemonic with 256 bits of entropy. You need to provide an account alias name of your choice (keep it simple and clean) and also need provide a passphrase:
./hmy keys add example-account --use-own-passphraseEnter passphrase for accountRepeat the passphrase:
When creating keys this way,
hmy will ask you to provide a passphrase without repeating it on the screen. The example-account is just a name you can pick, so pick something simple.
Make sure you keep track of this passphrase for future use because the passphrase is used to decrypt the keystore when signing transactions.
To know where you wallet file has been created, just run the following command:
./hmy keys location
The command above will return the location of your wallet file. Backup this wallet file somewhere else.
You can check the wallets (local accounts) with the following command:
./hmy keys listNAME ADDRESSacc3 one1wh4p0kuc7unxez2z8f82zfnhsg4ty6dupqyjt2example-account one1658znfwf40epvy7e46cqrmzyy54
You can check wallet balances with the following command:
./hmy --node="https://api.s0.p.hmny.io" balances one1wh4p0kuc7unxez2z8f82zfnhsg4ty6dupqyjt2