HD Wallets
Create the HD Wallet
Create the HD Wallet and provide the mnemonic phrase.
Usage: ioctl hdwallet create
Example
➜ ioctl hdwallet create
Set password
# Enter a password to access this account
Enter password again
# Repeat your password
Mnemonic phrase: object gentle entry place cigar minimum crowd lounge collect tray describe brush
It is used to recover your wallet in case you forgot the password. Write them down and store it in a safe place.Delete the HD Wallet
Deletes the HD Wallet from the system
Usage: ioctl hdwallet delete
#Example
➜ ioctl hdwallet delete
** This is an irreversible action!
Once an hdwallet is deleted, all the assets under this hdwallet may be lost!
Type 'YES' to continue, quit for anything else.
Options: yes
Quit for anything else.
# Type yes to delete or Ctrl+C to cancel
Derive an address
Derive an address from the HD Wallet given a certain derivation path.
Usage: ioctl hdwallet derive id1/id2/id3
Example
Send transactions
Once you imported a seed phrase or created a brand new HD wallet, you can refer the private key of one of it's derived addresses with hdw::a/b/c.
For example, if you want to make an IOTX transfer from the first HD Wallet derived address, here is how you'd do it:
or, an ioUSDT ERC20 transfer from the first derived address, would look like this:
where io1m22v9cnnjcktas584wcl96vl5z5e700l7fdvhk is the recipient and io1d77dcytfk5fsck089eg7669gfpqunrx35ue5ln is the ioUSDT token contract address on IoTeX.
Export the HD Wallet
Displays the mnemonic phrase for the HD wallet
#Example
Usage: ioctl hdwallet export
Example
Import a mnemonic phrase
Usage: ioctl hdwallet import

