sdk/builders/operations/Mint.ts
Mint overview
Mint operation - creates minting transactions for native tokens.
Added in v2.0.0
Table of contents
programs
createMintAssetsProgram
Creates a ProgramStep for mintAssets operation. Adds minting information to the transaction and tracks redeemers by PolicyId.
Implementation:
- Validates that only native tokens are being minted (no lovelace)
- Converts SDK Assets to Core.Mint structure
- Merges with existing mint state
- Tracks redeemer information for script-based minting policies (by PolicyId)
RedeemerBuilder Support:
- Static: Direct Data value stored immediately
- Self: Callback stored for per-policy resolution after coin selection
- Batch: Callback + input set stored for multi-policy resolution
Signature
export declare const createMintAssetsProgram: (
params: MintTokensParams
) => Effect.Effect<void, TransactionBuilderError, TxContext>Added in v2.0.0