Function Signature
Description
Updates the password for a wallet. This function requires the existing password for verification and sets a new password for the wallet.Parameters
Required Parameters
accountAddress
(string
) - The wallet address to update password forexistingPassword
(string
) - The current wallet passwordnewPassword
(string
) - The new wallet password
Returns
Promise<void>
- Resolves when password is updated successfully
Example
Error Handling
Related Functions
verifyPassword()
- Verify wallet passwordrequiresPasswordForOperation()
- Check if password is required