Function Signature
Description
Verifies that the suppliedpassword correctly decrypts the wallet’s backup. Throws if the password is wrong or the cached metadata is stale.
Parameters
Required Parameters
accountAddress(string) - The wallet address. Must matchwalletMetadata.accountAddress.walletMetadata(WalletMetadata) - The cached metadata for this wallet. Must includeexternalServerKeySharesBackupInfo.
Optional Parameters
password(string) - The password to verify.
Returns
Promise<void>- Resolves if the password is correct (or no password was needed).
Example
Related
WalletMetadata- The metadata object passed to every operationupdatePassword()- Rotate the wallet’s password