Skip to main content

Function Signature

Description

Checks whether a specific wallet operation requires backup shares to be restored before it can complete. Useful for deciding whether to prompt the user for a password.

Parameters

Required Parameters

  • accountAddress (string) - The wallet address (must include 0x prefix). Must match walletMetadata.accountAddress.
  • walletOperation (WalletOperation) - The wallet operation to check
  • walletMetadata (WalletMetadata) - The cached metadata for this wallet

Optional Parameters

  • backupInfo (KeyShareBackupInfo) - Pre-resolved backup info; if omitted the SDK reads it from walletMetadata.

Returns

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

Example

Available Wallet Operations

  • SIGN_MESSAGE - Message signing operations
  • SIGN_TRANSACTION - Transaction signing operations
  • EXPORT_PRIVATE_KEY - Private key export operations

Error Handling

Last modified on May 21, 2026