Mint
scalus.cardano.txbuilder.TransactionBuilderStep.Mint
case class Mint(scriptHash: ScriptHash, assetName: AssetName, amount: Long, witness: NativeScriptWitness | TwoArgumentPlutusScriptWitness) extends TransactionBuilderStep
Mint/burn tokens using a native/plutus script. Additive - sum monoid over amount. You should determine your aggregate mint amount outside of the builder. Chaining steps together to calculate the mint amount.
WARNING: If you explicitly pass amount == 0, this will return a Left.
WARNING: If you do a reciprocal pair of mint/burn of the same amount (i.e., Mint 4, Mint -4), you will nullify the mint amount, but the additionalSigners/requiredSigners/witnesses will not be removed.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TransactionBuilderStepclass Objecttrait Matchableclass Any
Members list
In this article