Questions tagged [minting]
The process of creating a new native asset on Cardano. Minted assets can be fungible or non-fungible.
77
questions
1
vote
1
answer
15
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
24
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 ...
0
votes
2
answers
44
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 ...
1
vote
2
answers
39
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 ...
0
votes
1
answer
19
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
46
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
3
answers
75
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 (...
0
votes
1
answer
17
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 ...
0
votes
1
answer
34
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
1
answer
29
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
0
answers
28
views
Issue in Submitting Native Minting Scripted Transaction with Ledger
Using CSL I have successfully built a minting transaction with a native script. Using Nami, Eternl or Flint not connected to hardware wallets I am able to sign the transaction and submit it. However, ...
0
votes
1
answer
64
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
0
answers
25
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
41
views
Plutus Emulator trace halting with MintingPolicyNotFoundError
I have the following simple minting script:
{-# INLINABLE unrestricted #-}
unrestricted :: () -> ScriptContext -> Bool
unrestricted () _ = True
unrestricted_policy :: MintingPolicy
...
2
votes
1
answer
124
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
1
answer
32
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
83
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 ()
...
3
votes
1
answer
113
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
27
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
110
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
0
answers
112
views
Mint Nft With Plutus Script By NamiWallet
I am writing an DAPP to mint NFT with nami wallet.
Currently, I can mint NFT with Nami by using Native script and function add_mint_asset_and_output_min_required_coin. But is there any way I can mint ...
0
votes
1
answer
66
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
57
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 ...
0
votes
0
answers
22
views
How can I make a minting contract that never closes?
I am trying to change some old contracts to take advantage of the reference scripts coming whenever vasil comes out. How can I make a contract that will mint new coins upon activation, I'm talking ...
1
vote
1
answer
270
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
72
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
1
answer
53
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
1
answer
98
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
69
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
54
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 ...
0
votes
0
answers
14
views
Can a json files keys and values be a prerequisite for a minting policy?
I was wondering if a policy script can mint CNT-20 tokens with a metadata.json TX.
Can Scripts take the JSONs keys and values as an added prerequisite before minting?
I know Plutus can be used too ...
3
votes
1
answer
129
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
2
answers
109
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 ...
0
votes
0
answers
74
views
MissingScriptWitnessesUTXOW while minting NFTs my own NFTS with Nami Wallet?
I am trying to mint NFTs from Nami wallet. I get the following errors. I look like i didn't sign the nativescripts?
transaction submit error ShelleyTxValidationError ShelleyBasedEraAlonzo (...
0
votes
1
answer
40
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
49
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, ...
0
votes
1
answer
178
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
29
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
...
1
vote
1
answer
70
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 (...
1
vote
3
answers
137
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 ...
1
vote
2
answers
104
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 ...
1
vote
1
answer
70
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
...
0
votes
2
answers
62
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 ...
1
vote
1
answer
319
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 -> ...
0
votes
1
answer
130
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 ...
1
vote
3
answers
165
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 ...
3
votes
4
answers
749
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 ...
1
vote
0
answers
234
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
25
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?