Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lucid/src/core/core.ts>Core.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
Go to Latest
method Core.TransactionBuilder.prototype.add_mint
import { Core } from "https://deno.land/x/lucid@0.5.2/src/core/core.ts";
const { TransactionBuilder } = Core;

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: ScriptHash
mint_assets: MintAssets
optional
script_witness: ScriptWitness