9
votes
Is there a good tutorial to mint Cardano NFT using plutus script?
I am answering my own question. After several days of studies and testing, I finally mint NFT using plutus script. Please find my articles below:
https://edwardtam919.medium.com/how-to-mint-cardano-...
8
votes
Accepted
Ways to burn tokens?
There is no way to burn ADA.
You can burn the native tokens, if you have the singing keys for the tokens policy and the policy allows it.
If the policy doesn't allow it (locked by time slot), at the ...
6
votes
What are the ways of making NFTs unique?
NFTs have to be minted in some way or the other. In order to mint you will have to run a script with monetary policy for which you have to pay a fee, so might as well use that UTxO.
You can mint ...
5
votes
Minting a NFT (collection) with Blockfrost
You don't need blockfrost, just learn the cardano-cli and you can make anything. https://developers.cardano.org/docs/native-tokens/minting-nfts/
Download the Testnet version of Daedalus and get tADA (...
4
votes
Selfish mining / denial of service on Cardano?
Update 12/13/2021:
My first question on Cardano Stack Exchange was What is the Penalty for Running 2 Block Producer Nodes? Which I was told, "Network can penalize." But I never received an ...
4
votes
How to mint multiple NFT assets in the same transaction?
The process is the same but you need to specify in your cardano-cli transaction build command, all your assets to mint. For example:
cardano-cli transaction build-raw \
--fee 197797 \
--tx-in ...
4
votes
Accepted
Is there an open source vending-machine script for NFT minting?
Here is my version of a vending machine:
Upgraded with metadata creation
"Completed" counter backed up in a *.txt file so if the machine restarts the script does not start minting from the ...
3
votes
Accepted
Minting and distributing to different wallets
Here comes the answer: The example code above is a simplified extract of the real code I was running. In the latter, I wasn't setting the value to be minted to the constant 10 but using a function to ...
3
votes
Minting a NFT (collection) with Blockfrost
We can mint NFTs on cardano without smart contracts. There are some projects which help to do it in a browser like https://namiwallet.io/, but you can do it via CLI
3
votes
Stuck at Creating Keys for Token - cardano-cli address key-gen
Ok I am an idiot for asking and answering this,but I am doing it anyways in case somebody stumbles in the same problem.
The folder for the keys needs to be created in the the directory where the node ...
2
votes
Burning tokens after the 'before' time slot?
Not right now, but IOG is working for a way to burn these, so for now, keep them around!
2
votes
Accepted
Can you the number of NFT's that can be minted in a transaction?
There is not a way to specify the limit for a given native asset in the policy.
Only, once the policy is timelocked, you have the guarantee that the NFT creator does not mint or burn the NFTs.
2
votes
How to burn Cardano token after the 'invalid after' passes?
As Isaac stated, transaction with this policy is not possible anymore. But that does not mean it is not possible to publicly make assets unavailable. There is a great post on the Cardano form that ...
2
votes
Is there an open source vending-machine script for NFT minting?
You may be interested in this MIT licensed Cardano NFT vending machine bash script available on GitHub. It hasn't been updated in 6 months, but you can fork it from the ftpmorph repo and audit to see ...
2
votes
Accepted
Calculate a policy locking
Given the slot lenght is one second, this is pretty easy.
Find the current slot number.
$ curl -s -H "project_id: $BLOCKFROST_PROJECT_ID" https://cardano-mainnet.blockfrost.io/api/v0/...
2
votes
Question about policy ID for native assets
Yes - this is an example of an unlocked policy. Tokens can be minted and burned under this policy forever with no limits.
Here would be an example of a time-locked policy:
{
"type": "...
2
votes
Accepted
Are negative values valid quantities in native assets?
Official documentation unambiguously says about it:
The minting parameter is now called with a negative value, therefore destroying one token.
cardano-cli transaction build --mainnet --alonzo-era
...
2
votes
Accepted
How to PlutusTx.compile work with multiple arguments to mkPolicy
We have wrapMintingPolicy :: UnsafeFromData r => (r -> ScriptContext -> Bool) -> WrappedMintingPolicyType.
In the first case, we can spell out the details like:
policy :: PaymentPubKeyHash ...
2
votes
Accepted
How to define decimel points while minting tokens?
Not quite finalised, but CIP 38 is probably what you're looking for. You define the "decimals" value on-chain in your minting tx metadata.
See: https://github.com/cardano-foundation/CIPs/...
1
vote
Accepted
Is posible to do Batch minting of NFT with each NFT having different image?
Yes, it's possible. You can mint multiple NFTs using different metadata, all this in the same transaction. Here is an example of how you should structure your metadata
Take a look on this: How to mint ...
1
vote
Does Cardano have a decentralised monetary policy?
Short answer, all ada in existence was minted in the genesis block, there is no more ada that can be minted or burned.
The minted ada went to the treasury and stake pool operators receive a reward ...
1
vote
Getting the address of a parameterized contract from within the validator of another script
Your minting policy should have a parameter related to the address of the contract.
mkPolicy :: Address -> () -> ScriptContext -> Bool
In your off chain code, you send that parameter to your ...
1
vote
How to burn Cardano token after the 'invalid after' passes?
You could send it to a wallet you control then destroy any record of your credentials :)
1
vote
How do I mint an NFT without any image and and just some text?
If you want to keep the CIP 25 - NFT Metadata Standard, an image is required.
You can, however, add some text to the description property.
1
vote
Must spend UTxO constraint when minting NFT
Actually in this code Value.singleton (curSymbol oref tn) tn 1 you are only specifying the Value to be minted. To be more precise: curSymbol oref tn is the currency symbol of your NFT to be minted ...
1
vote
Accepted
Having a problem with Minting with Cardanocli-js
All solved with the actualization of the cardanocli-js to the 4.0.1 version.
The examples are working great!
1
vote
Having a problem with Minting with Cardanocli-js
The issue which is simple. The command: cardano-cli query utxo --address {address} --mainnet
Has changed it's output format recently. It now returns an extra field at the end of each TX. A well placed ...
1
vote
Minting NFTs via cardano-cli: How to mint several NFTs consecutively?
You should wait until transaction is finished and UTxO's are updated in your wallet.
A way to do it is to create a script that will query UTxO's for your wallet and once UTxO's are changed you run ...
1
vote
Minting NFTs via cardano-cli: How to mint several NFTs consecutively?
Sorry for not providing more context and code / scripts in the original question. however, I found the solution to my problem and want to share it in case anyone else has a similar issue.
for the very ...
1
vote
Minting a NFT (collection) with Blockfrost
The main reason that we can mint NFTs without smart contracts is native tokens on the Cardano blockchain.
A good explanation is found here https://www.youtube.com/watch?v=ccLgnM3ErUE at around 3 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
minting × 50nft × 27
plutus × 17
native-assets × 14
plutus-pioneer-program × 8
cardano-cli × 7
metadata × 4
token × 4
policy × 4
smart-contract × 2
transaction × 2
script × 2
developers × 2
statemachines × 2
cardano-serialization-lib × 2
wallet × 1
stake-pool × 1
haskell × 1
decentralized-applications × 1
plutustx × 1
rewards × 1
fee × 1
development × 1
block-production × 1
cardano-db-sync × 1