Function Signature
Description
Verifies a Solana wallet password for a specific operation. This function is used to authenticate the user before performing password-protected wallet operations.Parameters
Required Parameters
accountAddress
(string
) - The Solana wallet address to verify password forpassword
(string
) - The wallet password to verifywalletOperation
(WalletOperation
) - The wallet operation to verify password for
Returns
Promise<void>
- Resolves if password is valid, throws error if invalid
Example
Available Wallet Operations
SIGN_MESSAGE
- Message signing operationsSIGN_TRANSACTION
- Transaction signing operationsEXPORT_PRIVATE_KEY
- Private key export operations
Error Handling
Related Functions
requiresPasswordForOperation()
- Check if password is requiredsignMessage()
- Sign a messagesignTransaction()
- Sign a transaction