Function Signature
Description
Verifies a 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 wallet address to verify password for (must include0x
prefix)
Optional Parameters
password
(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