Skip to main content

Function Signature

Description

Checks whether a specific wallet operation requires a password. Useful for branching UI before prompting the user.

Parameters

Required Parameters

  • accountAddress (string) - The wallet address. Must match walletMetadata.accountAddress.
  • walletMetadata (WalletMetadata) - The cached metadata for this wallet

Optional Parameters

  • walletOperation (WalletOperation) - The wallet operation to check
  • backupInfo (KeyShareBackupInfo) - Pre-resolved backup info

Returns

  • Promise<boolean> - true if password is required, false otherwise

Example

Last modified on May 21, 2026