Mint
(mint)
payable
Use this function in your app
import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function mint(address _target, uint256 _quantity, address _to) payable",
params: [_target, _quantity, _to]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});