useVerifyMessage
Description
This hook provides functionality to verify a signature for a given message.
Returns
data (
boolean
): The signature generated.error (
Error | null
): An error object if the transaction failed, otherwisenull
.isPending (
boolean
): A boolean indicating whether the transaction is currently pending.isSuccess (
boolean
): A boolean indicating whether the transaction was successfully sent.isError (
boolean
): A boolean indicating whether an error occurred during the transaction process.verifyMessage : A function that verify if the signature corresponds to the given message.
verifyMessageAsync : A function that verify if the signature and returns a promise that resolves to the verification result.
Example
Last updated