Account

Description

MVS Account is based on Hierarchical Deterministic, BIP32.
It’s unnecessary to reserve your random-private-keys, only one master-key that is mnemonic for 24 words needs to be backed up.
It’s extremely crucial and important to backup your master-key’s mnemonic phrase. If you ever lose it, all assets will be gone.

getnewaccount:

generate new account from MVS. Consider accountname/password as your master key’s alias.

./mvs-cli getnewaccount testaccount testaccount

{
"mnemonic": "grass proud sight meat normal quarter diagram explain slush mansion dawn gravity catalog task survey kiss major brick suit tenant version symptom lecture trial",
"default-address": "tVXYCvbGxqgKFhhfBp6KpqH7wfoYvSwbPr"
}

getaccount

Show some existed account. Please see help message for details.

./mvs-cli getaccount testaccount testaccount trial

{
"name": "testaccount",
"mnemonic-key": "grass proud sight meat normal quarter diagram explain slush mansion dawn gravity catalog task survey kiss major brick suit tenant version symptom lecture trial",
"address-count": "1",
"user-status": "2"
}

importaccount

./mvs-cli importaccount -n importaccount -p importaccountpasswd -i 10 grass proud sight meat normal quarter diagram explain slush mansion dawn gravity catalog task survey kiss major brick suit tenant version symptom lecture trial
{
"name": "importaccount",
"mnemonic": "grass proud sight meat normal quarter diagram explain slush mansion dawn gravity catalog task survey kiss major brick suit tenant version symptom lecture trial",
"hd_index": "10",
"addresses": [
"tVXYCvbGxqgKFhhfBp6KpqH7wfoYvSwbPr",
"tDFbSYVpNsAkQ4aG84HZhtAGHWJq75r39w",
"tK4bRgUT42MGXFTnRgSnz3KfByPz6fvfsG",
"tHnWqhZP2mn8iib9LtisjiKzkTBjsek67s",
"tCExdKzkiQX4YgkCV4YPqQdSqNVqRyGibt",
"tRxqhHcd3jjb53LRUt3do46xpaJm8n9haF",
"tFC4cgNbf5YhmezpPQaRw6jiURn2dZmWom",
"tFQEpwNCLZ1HBGDotcV9GwB96YeqdsVBqo",
"tPi2ELoUcetnripJezMR7EtGmSuJzNuHX4",
"tH51xDR4WTQvhfHD9wc393YnvkQZVMywDS"
]
}

changepasswd

./mvs-cli changepasswd testaccount testaccount -p newpassword