Function Signature
Description
Verifies that a message was signed by the specified wallet address. Performs message recovery and address comparison to validate the signature.Parameters
Required Parameters
accountAddress(string) - The wallet address that signed the message (must include0xprefix)message(SignableMessage) - The original message that was signedsignature(any) - The signature to verify (hex string with0xprefix)
Returns
Promise<boolean>-trueif the signature is valid,falseotherwise
Example
Error Handling
Related Functions
signMessage()- Sign a messagesignTransaction()- Sign a transaction