Function Signature
Description
Checks whether a specific wallet operation requires a password for the given Solana wallet address. This is useful for determining if password verification is needed before performing operations.Parameters
Required Parameters
accountAddress
(string
) - The Solana wallet address to checkwalletOperation
(WalletOperation
) - The wallet operation to check
Returns
Promise<boolean>
-true
if password is required,false
otherwise
Example
Available Wallet Operations
SIGN_MESSAGE
- Message signing operationsSIGN_TRANSACTION
- Transaction signing operationsEXPORT_PRIVATE_KEY
- Private key export operations
Error Handling
Related Functions
verifyPassword()
- Verify wallet passwordsignMessage()
- Sign a messagesignTransaction()
- Sign a transaction