mintWithSignature

Mints a new ERC1155 token with the given minter signature

Example

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 });

Parameters

Returns

A promise that resolves to the transaction result.