Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lucid/mod.ts>C.TransactionBuilder#add_mint

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Very Popular
Latest
method C.TransactionBuilder.prototype.add_mint
import { C } from "https://deno.land/x/lucid@0.10.10/mod.ts";
const { TransactionBuilder } = C;

Add a mint entry to this builder using a PolicyID and MintAssets object It will be securely added to existing or new Mint in this builder It will securely add assets to an existing PolicyID But it will replace/overwrite any existing mint assets with the same PolicyID first redeemer applied to a PolicyID is taken for all further assets added to the same PolicyID

Parameters

policy_id
mint_assets
script_witness