Questions tagged [minting]
The minting tag has no usage guidance.
55
questions
0
votes
0
answers
8
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 ...
0
votes
1
answer
38
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
0
answers
12
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
11
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
23
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
35
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
25
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
9
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 ...
1
vote
1
answer
54
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
51
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
41
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
24
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
32
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
102
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
26
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
46
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 (...
0
votes
0
answers
27
views
Minting egg token and doing prevalidation
I'm wondering how it can be done
We want to lock 2NFT in the contract and validate
if they have allowed policies.
claiming back of the token should happen after 7 days
after 7 days we would like to ...
0
votes
2
answers
72
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
85
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
54
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
52
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
203
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
80
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
124
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 ...
2
votes
3
answers
566
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
123
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
18
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?
3
votes
3
answers
320
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
2
answers
294
views
Can Nami wallet provide the TransactionWitnessSet for minting a native asset?
I'm trying to mint a native asset reusing the keys that Nami already uses. This is to make a minting service that is connected to a specific wallet, and that wallet is always able to mint more tokens ...
5
votes
1
answer
210
views
Selfish mining / denial of service on Cardano?
I just analysed the reasons for why my pool minted an orphaned block.
Here is the sequence of events:
My pool minted block No=1 in its allocated slot=28 at T=28.050 seconds. This block propagated ...
2
votes
0
answers
27
views
How to reuse data when updating Token using StateMachine
I'm currently creating a social network-like Dapp on plutus, and I've come across something I don't understand.
My Dapp, for example, is NFT(for own identity)->RFT(for sell own content)->NFT(for ...
0
votes
1
answer
677
views
Is posible to do Batch minting of NFT with each NFT having different image?
Since the metadata is attached to a Tx not to the NFT, and is unique per transaction, there can not be such a thing as a Batch minting of NFT with each one having different metadata for example "...
0
votes
0
answers
45
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
2
answers
74
views
Does Cardano have a decentralised monetary policy?
I’ve heard people claim that bitcoin is the only crypto currency which has actually decentralised monetary policy (being the basis for the claim that it cannot therefore be changed).
Since minting ...
0
votes
0
answers
36
views
How to check the minting policy script for an asset [duplicate]
Given the policy ID of an asset, how can one find out its' minting policy script (validation rules)?
I've used CardanoScan so far. It is able to show the current token supply, holders and transactions ...
5
votes
1
answer
799
views
How to mint multiple NFT assets in the same transaction?
The developer guide doesn't cover this.
Here is an example of what I'm trying to do:
https://cardanoscan.io/transaction/e1c7bc707e56bf37b4325dc4b7fe524eafe8ca746e54746d60b321588ffebb6c?tab=tokenmint
I ...
3
votes
2
answers
158
views
How to burn Cardano token after the 'invalid after' passes?
My token policy script is:
all:
[
{
invalidAfter: 40951072
},
{
pubKey: "36ed345d252a242ad67072db79e5736866fa58ebe3fd782739208ef6"
}...
0
votes
1
answer
139
views
How do I mint an NFT without any image and and just some text?
I have made a script here to mint NFT as per the official docs. : https://github.com/nateshmbhat/cardano-nft-minter
But there is no mention in the doc to mint an nft with just some text description ...
4
votes
1
answer
133
views
Minting and distributing to different wallets
I am trying to build a transaction that mints a number of tokens and distributes them to different wallets. Like here:
vote :: forall w s. Poll -> Contract w s Text ()
vote poll = do
...
let ...
2
votes
1
answer
189
views
Must spend UTxO constraint when minting NFT
I'm currently going through week 5 of the plutus piooner lectures, and I have some questions about the NFT process. Here is a reference with the complete code, but here are the important parts:
The on-...
3
votes
2
answers
283
views
Having a problem with Minting with Cardanocli-js
Im creating a transaction using this code:
const tx = { txIn: wallet.balance().utxo, txOut: [
{
address: wallet.paymentAddr,
value: { ...wallet.balance().value, [MARCELOCOIN]: 1 },
} ], ...
2
votes
1
answer
121
views
Calculate a policy locking
How can I calculate when the policy is going to be locked? I have the policy script file and I need to specify the before slot but I don't know how to calculate it.
For example, I want the policy to ...
2
votes
1
answer
101
views
Getting the address of a parameterized contract from within the validator of another script
Suppose I have one contract, Contract 1, that is parameterized by type
Contract1Params{
tokenName :: BuiltinByteString
}
and I have a minting policy that will only mint a token with tokenName tn ...
9
votes
2
answers
434
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 ...
0
votes
2
answers
386
views
Minting NFTs via cardano-cli: How to mint several NFTs consecutively?
I followed the NFT minting docs on https://developers.cardano.org/docs/native-tokens/minting-nfts which works very well for the first transaction.
I'm currently stuck trying to mint a second NFT. It's ...
7
votes
4
answers
1k
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
224
views
How can I mint a token without a name for NFT royalties?
The proposal for Cardano NFT royalties CIP-0027 suggests that a nameless token should be used to store the royalties information.
Usually a mint transaction looks something like this:
cardano-cli ...
4
votes
3
answers
176
views
Can you the number of NFT's that can be minted in a transaction?
I wanted to understand if you could place a hard limit on the number of tokens minted under a policy.
I've scanned the docs and the policy.script only seems to control permission and the amount of ...
4
votes
2
answers
93
views
What is the most trusted Third party tool for Minting Native Tokens on cardano?
I have come across many Third party minting sites, however, I have a security concern, as per the keys, and policies. So what is the most trusted Third party tool for Minting Native Tokens on cardano?
6
votes
1
answer
264
views
What is the minting cost of an NFT?
What is the minting cost of an NFT? If it depends on some factors, can they be made explicit?