Wallet Actions

listWallets

List all saved wallets

$ listWallets

createWallet

Create and save a new wallet

Required:

  • label:string
  • password:string (prompt)
$ createWallet label:"My wallet name"

generateWallet

Generate a random wallet. Does not save, used for utility and testing purposes

Required:

  • password:string (prompt)
$ generateWallet

selectWallet

Select a saved wallet to set as a default

Required:

  • address:hexString
$ selectWallet address:0x00d5860cad65704e75f784f29911c5aa9ddc13894e4bdfa657

selectedWallet

View the address of the currently selected wallet

$ selectedWallet

unselectWallet

Unselect currently selected wallet

$ unselectWallet

recoverWallet

Import and save a wallet from a private key.

Required:

  • privateKey:hexString
  • label:string
  • password:string (prompt)
$ recoverWallet privateKey:0x010203... label:"My recovered wallet"

changeWalletPassword

Change your wallet encryption password. This would change the encrypted private key. Make sure to backup the new encrypted private key.

Required:

  • address:hexString
  • currentPassword:string (prompt)
  • newPassword:string (prompt)
$ changeWalletPassword address:0x00d5860cad65704e75f784f29911c5aa9ddc13894e4bdfa657

verifyWallet

Verify access to a wallet using the decryption password

Required:

  • address:hexString
  • password:string (prompt)
$ verifyWallet address:0x00d5860cad65704e75f784f29911c5aa9ddc13894e4bdfa657

deleteWallet

Delete a wallet

Required:

  • address:hexString
$ deleteWallet address:0x00d5860cad65704e75f784f29911c5aa9ddc13894e4bdfa657

deleteAllWallets

Delete all saved wallets

$ deleteAllWallets

accountBalance

Get the account balance of an address

Optional:

  • address:hexString (Address defaults to selected wallet if not specified. Refer selectWallet here)
$ accountBalance address:0x00d5860cad65704e75f784f29911c5aa9ddc13894e4bdfa657

accountTransactions

List all transactions of an account

Optional:

  • address:hexString (Address defaults to selected wallet if not specified. Refer selectWallet here)
$ accountTransactions address:0x00d5860cad65704e75f784f29911c5aa9ddc13894e4bdfa657