wallet¶
Wallet management utilities.
usage: mox wallet [-h] [-d] [-q]
{list,ls,generate,g,new,import,i,add,view,decrypt,dk,delete,d} ...
Positional Arguments¶
- wallet_command
Possible choices: list, ls, generate, g, new, import, i, add, view, decrypt, dk, delete, d
Named Arguments¶
- -d, --debug
Run in debug mode
Default:
False
- -q, --quiet
Suppress all output except errors
Default:
False
Sub-commands¶
list (ls)¶
List all the accounts in the keystore default directory
mox wallet list [-h]
generate (g, new)¶
Create a new account with a random private key
mox wallet generate [-h] [--save] [--password PASSWORD |
--password-file PASSWORD_FILE]
name
Positional Arguments¶
- name
Name of account
Named Arguments¶
- --save
Save to keystore
Default:
False
- --password
Password for the keystore
- --password-file
File containing the password for the keystore
import (i, add)¶
Import a private key into an encrypted keystore
mox wallet import [-h] name
Positional Arguments¶
- name
Name of account to import
view¶
View the JSON of a keystore file
mox wallet view [-h] keystore_file_name
Positional Arguments¶
- keystore_file_name
Name of keystore file
decrypt (dk)¶
Decrypt a keystore file to get the private key
mox wallet decrypt [-h] [--password PASSWORD |
--password-file-path PASSWORD_FILE_PATH] [--print-key]
keystore_file_name
Positional Arguments¶
- keystore_file_name
Name of the keystore file to decrypt
Named Arguments¶
- --password
Password for the keystore account.
- --password-file-path
Path to the file containing the password for the keystore account.
- --print-key, -p
Print the private key to the console
Default:
False
delete (d)¶
Delete a keystore file
mox wallet delete [-h] keystore_file_name
Positional Arguments¶
- keystore_file_name
Name of keystore file