Change Mnemonic Password
API-v2change_mnemonic_password
The change_mnemonic_password
method allows a user to update the password used to encrypt a mnemonic phrase in their local database.
While this will change the password used to encrypt the mnemonic phrase in the local database, it will not update the wallet_password
value in the MM2.json config file.
This will need to be updated manually, otherise you will see a log error Error initializing wallet: Error generating or decrypting mnemonic: Error decrypting mnemonic: HMAC error: MAC tag mismatch
on next launch.
Parameter | Type | Required | Description |
---|---|---|---|
current_password | string | ✓ | the active mnemonic password for your wallet |
new_password | string | ✓ | the new password to use for encrypting your active mnemonic password |
Parameter | Type | Description |
---|---|---|
result | null | Returns null on successful password change. |
Change Mnemonic Password
POST
change_mnemonic_password{
"mmrpc": "2.0",
"method": "change_mnemonic_password",
"userpass": "RPC_UserP@SSW0RD",
"params": {
"current_password": "old_password123",
"new_password": "new_password456"
}
}
Parameter | Type | Description |
---|---|---|
WalletsStorageError | string | Error decrypting or accessing wallet storage. |
To view your mnemonic phrase in plain text, use get_mnemonic.