verifyContractWalletSignature

Example

import { verifyContractWalletSignature } from 'thirdweb/auth';
const isValid = await verifyContractWalletSignature({
message: '0x..',
signature: '0x..',
address: '0x...',
chain: ...,
client: ...,
});
function verifyContractWalletSignature(__namedParameters: {
accountFactory?: {
address: string;
verificationCalldata: `0x${string}`;
};
address: string;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
message: string;
signature: string | Uint8Array | Signature;
}): Promise<boolean>;

Parameters

Type

let __namedParameters: {
accountFactory?: {
address: string;
verificationCalldata: `0x${string}`;
};
address: string;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
message: string;
signature: string | Uint8Array | Signature;
};

Returns

let returnType: Promise<boolean>;

A boolean indicating whether the signature is valid.