Questions tagged [minting]

The process of creating a new native asset on Cardano. Minted assets can be fungible or non-fungible.

Filter by
Sorted by
Tagged with
0 votes
1 answer
86 views

Using `curSymbol` function in Validator script

supposed I have a mintingpolicy script (simple one time minting policy, parameterizing TxOutRef) and a validator script. I want to validate if the token with correct CurrencySymbol is spent in a ...
0 votes
0 answers
37 views

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, ...
2 votes
1 answer
144 views

InlineDatum on ReferenceOutput in OffChain code

I tried to use the inline datum of a reference input in the minting policy below: {-# INLINABLE validateMinting2 #-} validateMinting2 :: TxOutRef -> BuiltinData -> BuiltinData -> () ...
0 votes
3 answers
143 views

how to resolve this transaction submission error of MintToken with Mesh

I am Facing this error while transaction submission. ""transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (FromAlonzoUtxowFail (...
1 vote
1 answer
106 views

Rust Serialization Lib Minting NFT - Missing Key Witnesses Error on Submission

I am running into an error with the CSL Rust Lib when submitting a minting NFT tx. I am following a minimal example in JS https://gist.github.com/lovalabs/83d08796ab9ff65cbf188fbca8d03343 as a guide ...
0 votes
1 answer
40 views

Error submitting a transaction (Error: PPViewHashesDontMatch)

I hope I can get help from someone on here. I built a minting transaction on preprod using Lucid that uses a validator that always pass, and I am stuck with this error: error: Uncaught (in promise) ...
1 vote
2 answers
90 views

Mutable NFT state by minting and burning in same transaction

The problem Please consider the following case: a token (NFT) needs to holds some state, ie {a: 234, b: "someState"}, which needs to be mutable and it needs to abide to specific rules. The ...
0 votes
1 answer
26 views

Why is writeToScript reporting that my script costs 0 resources?

I have the following minting script: {-# INLINABLE verify_mint #-} script :: () -> V2.ScriptContext -> Bool script () _ = (3::Integer) == 2+1 and the following off-chain code to mint a token: ...
0 votes
1 answer
49 views

Unable to attach two reference inputs to a transaction with Plutus Emulator

I have written a script that will fail unless it receives both oref1 and oref2 as reference inputs. I have the following emulator code: let rule = mempty <> C....
0 votes
2 answers
70 views

Validator always accepts and Mints (but it shouldn't)

Hey I have this simple stupid validator: validator { fn nft(datum: Datum, _redeemer: Void, context: ScriptContext) { let ScriptContext { transaction, purpose } = context when purpose is { ...
1 vote
2 answers
37 views

How to differentiate NFTs of the same policy id?

For Example: You have an NFT collection that has 5 different tiers all under the same policy ID (cip-25 metadata standard). You want to be able to provide on-chain benefits to holders of the NFT ...
1 vote
1 answer
78 views

Mint the royalty token with pycardano

Good morning everyone, I have a question regarding the royalty token. I've already read about this subject, and I understand that I need to mint a token with metadata like this: { "777": ...
0 votes
1 answer
78 views

Limit the number for each Token (AssetName) within one Currency Symbol (Policy ID)

is there any way to limit number for each tokens within one minting policy, in Plutus validator? For example for policy ab12 I want to allow users minting tokens, in different transactions. Сan the ...
0 votes
1 answer
59 views

Cardano-cli minting gives FeeTooSmallUTxO error when no collateral

For minting some tokens I use this transaction: cardano-cli transaction build --testnet-magic 2 --tx-in-collateral 44ed21bc50eecc24e892a5bad4a98f2187b66d1f5074db22763cbc69fb5910b6#1 --tx-in ...
1 vote
2 answers
47 views

How do I design a dApp for 1000 NFTs minted per second

I am brainstorming on the architecture of a Cardano dApp that will be able to issue tickets as NFTs and can scale to around 1000 NFT tickets per second. From what I understand so far on UTXO, a ...
1 vote
3 answers
161 views

How to figure out what address to query for utxos when minting

Following the iohk guide to minting assets we identify the input utxo using the following command: cardano-cli query utxo --address $address --testnet-magic 1097911063 This is all well and good if ...
0 votes
2 answers
60 views

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 ...
0 votes
1 answer
43 views

Nami shows all minted NFTs in "Assets" tab instead of "Collectibles" tab

the following image illustrates my problem: all the NFTs I've been minting is being seen as normal native tokens instead of collectibles. For example, for the ANIMALSP01#28, the metadata in the ...
0 votes
1 answer
20 views

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 ...
3 votes
4 answers
854 views

How should you properly mint multiple NFTs under same policy?

The minting guide say that you should set the policy to expire after certain slot to make sure that nobody can mint more of the same NFT. This kind of makes sense, but then how can you reuse the same ...
0 votes
1 answer
71 views

Trying to submit a minting transaction using pycardano and blockfrost

Hello Cardano developers, I really hope you can help me :) I'm developing a Dapp and I need to mint a NFT. This works through a website, so a user clicks in a button to mint a NFT. Simple, right? I ...
0 votes
1 answer
79 views

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 ...
0 votes
0 answers
30 views

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 ...
0 votes
1 answer
199 views

How to build the transaction needed to have a user pay to mint an NFT

I have integrated a Cardano wallet into my site and done some basic interactions. I am hoping to get a sample, example and/or guidance on how to build the transaction I am interested in implementing: ...
0 votes
1 answer
44 views

Plutus Emulator trace halting with MintingPolicyNotFoundError

I have the following simple minting script: {-# INLINABLE unrestricted #-} unrestricted :: () -> ScriptContext -> Bool unrestricted () _ = True unrestricted_policy :: MintingPolicy ...
0 votes
1 answer
70 views

Tried minting from transition in StateMachine an got error MintingPolicyNotFound

I changed transition function in Lecture 7 and added constraint for minting Constraints.mustMintValue: transition ts s r = case (stateValue s, stateData s, r) of (v, _, SetPrice p) | p >= 0 ...
0 votes
1 answer
39 views

2 Validators for one Transaction

I'm building a use case where a person can buy a token and depending on the amount of ADA spent, he gets X tokens and a Special NFT. Each Validator represent the policy Id of these native tokens I'm ...
1 vote
1 answer
29 views

Simulate Minting Event In EmulatorTrace

My application has a minting script and a validator script that works together. I am using EmulatorTrace to test my application.How do i simulate a minting event in EmulatorTrace?
1 vote
1 answer
87 views

"plutusV2MintingPolicy" lookup not found by "balanceTx"

I am trying to mint some example tokens in offchain plutus code on tag v1.0.0-alpha1. This is the OffChain code I am currently using: mintFactoryToken :: Contract () MintFactorySchema Text () ...
0 votes
2 answers
127 views

Can you include a minting policy in a transaction without minting or burning any tokens?

I want to use the minting policy to abstract the script logic away from the validator and only validate what's necessary for a specific transaction. Right now, I'm able to do this by minting a token I ...
3 votes
1 answer
145 views

Why NFTs on cardano use IPFS CIDv0 instead of recommended CIDv1

IPFS, nft.storage and most other ipfs providers default and recommend using CIDv1. In contrast, most recently (September 2022.) minted NFT's on cardano still use CIDv0: tarc citizen lagani r ...
0 votes
1 answer
28 views

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) ...
2 votes
1 answer
125 views

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 ...
0 votes
1 answer
202 views

Cardano-cli error: "Invalid argument `"type":'"

I'm new and I'm following cardano developers tutorial to create NFT. I arrived at some modified code for what I wanted to do. But get this "Invalid argument `"type":'" error. When ...
0 votes
1 answer
88 views

How to do on-chain Integer pattern matching?

I want to do Integer pattern matching on-chain but always get an error: GHC Core to PLC plugin: E042:Error: Unsupported feature: Use of Haskell Integer equality, possibly via the Haskell Eq typeclass ...
1 vote
0 answers
251 views

Mint tokens using plutus scripts with the serialization lib

As I understand, in order to mint a token with the serialization-lib, you must use the function set_mint_scripts, providing a NativeScripts object. This collection of NativeScript objects should ...
0 votes
1 answer
90 views

Unlocked NFT minting policy

I want to create a collection of NFTs with unlimited supply. This way one NFT gets minted every time someone buys one. I don't need a limited supply because I want these NFTs to work as a "member ...
2 votes
1 answer
69 views

Metadata '721' error on pool.pm

Hello and thank you beforehand for your time! I read a lot before posting and could not find a solution to this. Pool.pm is complaining about the metadata '721' throwing an error: "Expecting an ...
9 votes
2 answers
635 views

Is there a good tutorial to mint Cardano NFT using plutus script?

I used to mint Cardano NFT using "Time locking" following this guide https://developers.cardano.org/docs/native-tokens/minting-nfts/. But I know the more formal way is to use plutus script ...
3 votes
3 answers
450 views

Is there an open source vending-machine script for NFT minting?

Many projects either use a vending-machine service like NFT-Maker PRO or buffybot or have built their own vending-machine scripts. Is there any open-source vending machine script that can be connected ...
1 vote
1 answer
324 views

How to release an NFT collection on Cardano?

I come form EVM background and now I'm looking at Cardano ecosystem. From what I can see, the approach is fundamentally different when releasing NFTs. On EVM you deploy a smart contract on which users ...
0 votes
1 answer
89 views

Problem with metadata on pool.pm

I am having some trouble with metadata for NFT I am minting. This is the asset on pool.pm: https://pool.pm/asset1q6fku9qrfld526pfdm746qu3j7wtgvuh5xet9u And again on adaptors.org: https://adapools.org/...
0 votes
1 answer
62 views

How to check if validator ran inside minting policy

I want to check within a minting policy whether a specific spending validator script is being run by checking if I can find an input that belongs to that spending validator's script address. If there ...
3 votes
1 answer
175 views

How to define decimel points while minting tokens?

I am minting some tokens on the testnet by following the instructions in at this document. https://docs.google.com/document/d/1gyIOEjxhGhlXsgPtM35DsY3QX02jxLwZSpek7zO4q7M/edit Everything is working ...
0 votes
1 answer
44 views

Emulator trace throws `BuiltinEvaluationFailure of UnIData` error with simple minting policy

Source https://github.com/tomazvila/plutus_minting_test Problem Running smart contract with simple minting use case fails to mint. Error Slot 00001: *** CONTRACT STOPPED WITH ERROR: "\"...
0 votes
1 answer
55 views

How to achieve a minting policy script that locks after certain number of images (assets) have been minted on the fly

Let's say I want to run an NFT campaign, where the minting policy only allows minting of 100 NFTs (each one is different), and then the policy should lock. If this minting policy were a Plutus script, ...
7 votes
4 answers
2k views

Minting a NFT (collection) with Blockfrost

I see al lot of NFT projects where you can buy 1 or multiple NFT's for a certain price. Like unsigned_algorithms, CardanoTrees etc. I am curious how these projects are created without the use of smart ...
0 votes
1 answer
34 views

How to check whether my two pubkeyHash is different or not using Haskell?

I'm using this script to check but this doesn't works for me import Prelude hiding (Eq) mkPolicy :: PubKeyHash -> PubKeyHash -> TokenName -> BuiltinData -> ScriptContext -> Bool ...
0 votes
1 answer
32 views

Can a native asset have different rules for minting and burning when using SimpleScripts?

Could I for example have one key to only be used for minting tokens and another only for burning? Or does this require Plutus script?
1 vote
1 answer
74 views

How to PlutusTx.compile work with multiple arguments to mkPolicy

I'm on homework 5 of the pioneer program. If I check Signed.hs: {-# INLINABLE mkPolicy #-} mkPolicy :: PaymentPubKeyHash -> () -> ScriptContext -> Bool mkPolicy pkh () ctx = txSignedBy (...