checkContractWalletSignature

Checks if a contract wallet signature is valid.

Example

import { checkContractWalletSignature } from "thirdweb/extensions/erc1271";
const isValid = await checkContractWalletSignature({
contract: myContract,
message: "hello world",
signature: "0x...",
});
function checkContractWalletSignature(
): Promise<boolean>;

Parameters

The options for the checkContractWalletSignature function.

Type

let options: {
contract: ThirdwebContract;
message: SignableMessage;
signature: string;
};

Returns

let returnType: Promise<boolean>;

A promise that resolves with a boolean indicating if the signature is valid.