Home > @3rdweb/sdk > ISignatureMinter > generateSignature
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;
}>;
Parameter | Type | Description |
---|---|---|
mintRequest | NewSignaturePayload | The request to generate a signature for. |
Returns:
Promise<{ payload: SignaturePayload; signature: string; }>