checkContractWalletSignedTypedData

Checks if a contract wallet signature is valid.

Example

import { checkContractWalletSignedTypedData } from "thirdweb/extensions/erc1271";
const isValid = await checkContractWalletSignedTypedData({
contract: myContract,
data: {
primaryType: "EIP712Domain",
domain: {
name: "Example",
version: "1",
chainId: 1,
verifyingContract: myContract.address,
},
});
function checkContractWalletSignedTypedData(
typedData,
primaryType
>,
): Promise<boolean>;

Parameters

The options for the checkContractWalletSignature function.

Type

typedData,
primaryType
>;

Returns

let returnType: Promise<boolean>;

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