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