Docs

mintWithSignature

Mints a new ERC721 token with the given minter signature

Example

import { mintWithSignature, generateMintSignature } from "thirdweb/extensions/erc721";
const { payload, signature } = await generateMintSignature(...)
const transaction = mintWithSignature({
contract,
payload,
signature,
});
await sendTransaction({ transaction, account });

Parameters

Returns

A promise that resolves to the transaction result.