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 });
function mintWithSignature(
options: BaseTransactionOptions<MintWithSignatureParams>,

Parameters

The transaction options.

Type

let options: BaseTransactionOptions<MintWithSignatureParams>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A promise that resolves to the transaction result.