Docs

mintWithSignature

Mints a new ERC20 token with the given minter signature

Example

import { mintWithSignature, generateMintSignature } from "thirdweb/extensions/erc20";
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.