Skip to main content
Version: Next

sdk.txbuilder.addmint

Home > @blaze-cardano/sdk > TxBuilder > addMint

TxBuilder.addMint() method

Adds minting information to the transaction. This includes specifying the policy under which assets are minted, the assets to be minted, and an optional redeemer for Plutus scripts.

Signature:

addMint(policy: PolicyId, assets: Map<AssetName, bigint>, redeemer?: PlutusData): this;

Parameters

Parameter

Type

Description

policy

PolicyId

The policy ID under which the assets are minted.

assets

Map<AssetName, bigint>

A map of asset names to the amounts being minted.

redeemer

PlutusData

(Optional) Optional. A redeemer to be used if the minting policy requires Plutus script validation.

Returns:

this