Function Signature

isPasswordEncrypted(params: {
  accountAddress: string;
}): Promise<boolean>

Description

Checks whether a specific wallet address is password encrypted. This function helps determine if password verification is required for wallet operations.

Parameters

Required Parameters

  • accountAddress (string) - The wallet address to check (must include 0x prefix)

Returns

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

Example

import { authenticatedEvmClient } from './client';

const evmClient = await authenticatedEvmClient();

const isEncrypted = await evmClient.isPasswordEncrypted({
  accountAddress: '0xYourWalletAddress',
});

console.log('Is password encrypted:', isEncrypted);

Error Handling

try {
  const isEncrypted = await evmClient.isPasswordEncrypted({
    accountAddress: '0xYourWalletAddress',
  });
  console.log('Password encryption status checked');
} catch (error) {
  console.error('Failed to check password encryption status:', error);
}