Skip to main content

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
0 answers
13 views

Plutus Relese 1.21.0.0 is causing AlwaysPass validator to fail

I recently updated my project to plutus tag-1.21.0.0 for a minting contract, the validator is: {-# INLINEABLE mkValidator #-} mkValidator :: MintScriptParameter -> MintRedeemer -> ScriptContext -...
Reeshav Acharya's user avatar
0 votes
1 answer
75 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, ...
Saad Raja's user avatar
0 votes
1 answer
102 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) ...
jycappucino's user avatar
0 votes
2 answers
95 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 { ...
user9852's user avatar
1 vote
2 answers
49 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 ...
Aidan's user avatar
  • 11
1 vote
2 answers
150 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 ...
Duco's user avatar
  • 33
0 votes
1 answer
29 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: ...
Eric's user avatar
  • 85
0 votes
1 answer
83 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 ...
dmitry_stas's user avatar
1 vote
1 answer
112 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": ...
Andre Morais's user avatar
0 votes
1 answer
83 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 ...
wmoco_6725's user avatar
0 votes
2 answers
62 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 ...
a_juggler's user avatar
1 vote
2 answers
54 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 ...
Skelli's user avatar
  • 327
0 votes
1 answer
56 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 ...
Andre Morais's user avatar
0 votes
1 answer
108 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 ...
Andre Morais's user avatar
0 votes
3 answers
177 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 (...
duaa azhar's user avatar
0 votes
1 answer
22 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 ...
wout's user avatar
  • 187
0 votes
1 answer
100 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 ...
user3755529's user avatar
0 votes
1 answer
58 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....
Eric's user avatar
  • 3
0 votes
1 answer
288 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: ...
RelevantData's user avatar
0 votes
0 answers
31 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 ...
munx's user avatar
  • 13
0 votes
1 answer
45 views

Plutus Emulator trace halting with MintingPolicyNotFoundError

I have the following simple minting script: {-# INLINABLE unrestricted #-} unrestricted :: () -> ScriptContext -> Bool unrestricted () _ = True unrestricted_policy :: MintingPolicy ...
Eric's user avatar
  • 3
2 votes
1 answer
155 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 -> () ...
CantTouchDis's user avatar
0 votes
1 answer
42 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 ...
Cristovao Morgado's user avatar
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?
szhang9921's user avatar
1 vote
1 answer
88 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 () ...
CantTouchDis's user avatar
3 votes
1 answer
167 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 ...
akegalj's user avatar
  • 143
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) ...
Cristovao Morgado's user avatar
2 votes
1 answer
126 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 ...
Will's user avatar
  • 1,162
0 votes
1 answer
101 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 ...
Falcon Stakepool's user avatar
2 votes
1 answer
75 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 ...
RomanW's user avatar
  • 21
1 vote
1 answer
346 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 ...
Andrzej Gis's user avatar
0 votes
1 answer
88 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 ...
SIDAN Whatever's user avatar
0 votes
1 answer
90 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 ...
Will's user avatar
  • 1,162
1 vote
1 answer
111 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 ...
Rust_Dev's user avatar
  • 151
0 votes
1 answer
94 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/...
Demogog's user avatar
0 votes
1 answer
66 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 ...
Will's user avatar
  • 1,162
3 votes
1 answer
211 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 ...
arunwebber's user avatar
0 votes
2 answers
136 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 ...
Mateus's user avatar
  • 988
0 votes
1 answer
48 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: "\"...
KugisMugis's user avatar
0 votes
1 answer
63 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, ...
Kurt Hartmann's user avatar
0 votes
1 answer
222 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 ...
Koki's user avatar
  • 1
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 ...
Karthikeyan Balusamy's user avatar
1 vote
1 answer
77 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 (...
Kurt Sys's user avatar
  • 172
1 vote
3 answers
176 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 ...
melchoir55's user avatar
1 vote
2 answers
119 views

Are negative values valid quantities in native assets?

In Cardano's Alonzo CDDL (Concise Data Definition Language) specification, it seems that the value of an asset could be negative. Is it correct? If the above assumption is correct, I am wondering how ...
Jerry's user avatar
  • 403
1 vote
1 answer
81 views

Cannot compile parameterized mintingPolicy to Plutus

I tried compiling a solution from the examples provided in PPP Iteration #2 but got stuck. Any ideas? Code: https://github.com/ILIYANGERMANOV/cardano-smart-contracts/blob/main/ivy-token/src/MintIvy.hs ...
Iliyan's user avatar
  • 13
0 votes
2 answers
70 views

How to Remove Burned NFTs from SQL Output

I am querying the Cardano Postgres DB and can't figure out how to remove NFTs (multi-assets) that have been burned. In the SQL query below, I am selecting the mint transactions for an asset ...
Kyle M's user avatar
  • 1
1 vote
1 answer
366 views

How does one-time minting policy actually work?

In week 5 of plutus-pioneer-program with NFT example this plutus minting policy code is provided: {-# INLINABLE mkPolicy #-} mkPolicy :: TxOutRef -> TokenName -> () -> ScriptContext -> ...
KugisMugis's user avatar
0 votes
1 answer
149 views

Question about policy ID for native assets

If the policy ID for a some native token looks like this: { "keyHash": "wfwrfasdfasdfsadk4tjwljaldk1234567789123455678", "type": "sig" } Can the token be ...
Myles's user avatar
  • 321
1 vote
3 answers
204 views

NFT Minting without Metadata

I hope all is well and everyone had a great holiday season. I am having an issue minting NFT's from the CLI they appear to be minting without metadata, even though I am referring to the fully ...
user5177's user avatar