10
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
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 ...
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 (...
5
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 ...
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 ...
3
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/...
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 ...
3
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/...
3
votes
Accepted
Cannot find wrapMintingPolicy after updating to latest release of plutus-apps
You could try to replace Scripts.wrapMintingPolicy with Scripts.mkUntypedMintingPolicy
...
import Plutus.Script.Utils.V1.Typed.Scripts qualified as Scripts
...
$$(PlutusTx.compile
[|| \ ...
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
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 ...
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
Is there an open source vending-machine script for NFT minting?
We open-sourced one of these on GitHub here: https://github.com/thaddeusdiamond/cardano-nft-vending-machine
It's written in Python but requires no cardano-node (only cardano-cli and a Blockfrost key). ...
2
votes
How should you properly mint multiple NFTs under same policy?
You are right, some people consider a NFT being a real NFT only after the policy expires, so that you can be sure it is unique.
You can also mint multiple NFTs with one policy in one transaction.
2
votes
How should you properly mint multiple NFTs under same policy?
There are a couple different ways minters are doing this. First is they create a policy ID that expires 6-12 months in the future. This allows them to mint multiple collections under the same ID but ...
2
votes
How should you properly mint multiple NFTs under same policy?
NFT projects tend to use a PolicyId to group NFTs into collections.
A PolicyId is tied to a minting wallet and may optionally contain an expiry date.
Once the expiry date passes, the minting wallet ...
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 achieve a minting policy script that locks after certain number of images (assets) have been minted on the fly
You could use a combination of a plutus validator script with a specific datum and a minting policy.
The minting policy just checks for the validator script has ran.
And the validator script checks ...
2
votes
Accepted
Problem with metadata on pool.pm
You have wrong policy ID in your metadata.
This is your mint trx https://cardanoscan.io/transaction/3bec2e04ecf374d8d341f6d4ef38c2b1b70b1817cb2e6a9fa197b2aea7dd8de2?tab=metadata
The actual policy Id ...
2
votes
Accepted
How to release an NFT collection on Cardano?
NFTs (and tokens) are native assets on Cardano and do not need separate contracts to manage them. They can be sent/received just as ADA can be (and need to be sent along with some ADA).
More info here:...
2
votes
Metadata '721' error on pool.pm
It's showing up for me alright on pool.pm: https://pool.pm/asset1xpdk028mq57te9dkg62rvy79nv2mhl4zr78xgn
Might have been just a temporary issue while data was populating?
There's a testing tool here, ...
2
votes
Accepted
Unlocked NFT minting policy
If you want to add security to this setup, you might want to consider using a multi signature setup. Say, for example, a 3 out of 5 signatures are needed. Then an adversary needs to retrieve at least ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
minting × 79nft × 39
plutus × 26
native-assets × 19
cardano-cli × 12
plutus-pioneer-program × 8
metadata × 8
policy × 7
mintingpolicy × 7
smart-contract × 5
transaction × 4
validator × 4
mint × 4
offchain × 4
blockfrost × 3
python × 3
wallet × 2
cardano-serialization-lib × 2
rewards × 2
script × 2
statemachines × 2
validation × 2
error × 2
nami × 2
developers × 2