Docs

verifySignature

Verifies the signature based on the provided options. Handles smart contract wallet signatures and EOA signatures. IMPORTANT: in order to check smart contract signatures, a chain and client must be provided.

Example

import { verifySignature } from "thirdweb/auth";
const isValid = await verifySignature({
message: "0x1234567890123456789012345678901234567890",
signature: "0x1234567890123456789012345678901234567890",
address: "0x1234567890123456789012345678901234567890",
});

Parameters

Returns

A boolean indicating whether the signature is valid or not.