Questions tagged [mintingpolicy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer

Cannot find wrapMintingPolicy after updating to latest release of plutus-apps

I've just checked out the latest release of the plutus-apps repository and ensured to copy the respective cabal.project dependencies (including their commit hashes). But I get a weird error, I didn't ...
Will's user avatar
  • 1,162
2 votes
1 answer

Getting the CurrencySymbol of PlutusV2 MintingPolicy

I'd like to get the CurrencySymbol of a PlutusV2 MintingPolicy. There's a function defined in Plutus.Script.Utils.Scripts with the following signature: scriptCurrencySymbol :: Versioned MintingPolicy -...
Aoaddeola's user avatar
  • 815
1 vote
1 answer

Multiple minting on one TX

I'm trying to mint a utility token and based on this quantity the investor will get different NFT bonus. ---------- mint :: MintParams -> Contract w FreeSchema Text () mint mp = do let ...
Cristovao Morgado's user avatar
0 votes
2 answers

Unable to deploy Plutus NFT Minting Policy parametrized by TxOutRef using cardano-cli

UPDATE: I'm making progress. It is apparent the TxOutRef stored on-chain has some extra-structure. For evidence I "printed" the TxOutRef's of the 'utxo' hard-wired in my minting policy and ...
a_juggler's user avatar
0 votes
1 answer

Are NFT policies interchangeable between networks?

Generating a policy doesn't require a running node; the cardano-cli alone is sufficient. Since no connection is made to the network, can I assume there's no difference between a policy on preprod and ...
wout's user avatar
  • 177
0 votes
1 answer

Mint an NFT using policy script on cardano

I'm trying to run validations before minting an asset/nft on cardano. I have written the policy script using plu-ts and transactions using mesh sdk. Script export const mintNFT = pfn( [datum.type, ...
Saad Raja's user avatar
0 votes
0 answers

How mint nft from policy_id

import { Transaction, ForgeScript } from '@meshsdk/core'; import type { Mint, AssetMetadata } from '@meshsdk/core'; // prepare forgingScript const usedAddress = await wallet.getUsedAddresses(); const ...
Cardano Insider's user avatar
0 votes
0 answers

TooMuchSpace error when running uplc profiling tool on simple minting policy

I have the following minting policy: {-# OPTIONS_GHC -fplugin-opt PlutusTx.Plugin:profile-all #-} {-# INLINABLE verify_mint #-} verify_mint :: () -> V2.ScriptContext -> Bool verify_mint () _ = ...
Eric's user avatar
  • 85
0 votes
2 answers

ScriptWitnessNotValidatingUTXOW while minting an NFT

I'm currently trying to create a minting process with lucid (v. 0.8.9) using Blockfrost on Mainnet. Minting policy: const mintingPolicy: MintingPolicy = lucid.utils.nativeScriptFromJson({ type: &...
Kostia's user avatar
  • 1
0 votes
1 answer

ScriptWitnessNotValidatingUTXOW - Transaction Error While Minting NFT With Native Script - Before Slot Instruction Not Working

I am trying to mint an NFT for the zeroOneGame exercise from gimbalabs on the pre-production testnet (babbage-era) but I incur in an error and I can't see what I am doing wrong. Here are the steps ...
user3755529's user avatar
0 votes
0 answers

mustMintValueWithRedeemer - Number of tokens minted

On the Offchain code I am trying to mint a token using the following snippet Constraints.mustMintValueWithRedeemer r (assetClassValue cTk 1) In the validation code of the minting script I am trying ...
munx's user avatar
  • 13
0 votes
1 answer

How to construct `TxOutRef`?

I am building an NFT minting policy which takes an argument of type TxOutRef as parameter. To this when I pass my parameter, it doesn't match with what is actually given in the transaction. Here is my ...
Sourabh's user avatar
  • 320
0 votes
1 answer

scriptCurrencySymbol in V1 libs to mint assets

I'm using the latest Plutus-Stater project with this script module FreeMinting where import Control.Monad hiding (fmap) import Data.Aeson (ToJSON, FromJSON) ...
Cristovao Morgado's user avatar