typescript-sdk

Home > @3rdweb/sdk > ISignatureMinter > generateSignature

ISignatureMinter.generateSignature() method

Generates a signature. This should only be called by wallets that have the MINTER role on the contract. Otherwise their signature won’t be valid.

Signature:

generateSignature(mintRequest: NewSignaturePayload): Promise<{
        payload: SignaturePayload;
        signature: string;
    }>;

Parameters

Parameter Type Description
mintRequest NewSignaturePayload The request to generate a signature for.

Returns:

Promise<{ payload: SignaturePayload; signature: string; }>