Hot answers tagged

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-...
Tam Edward's user avatar
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 ...
Marek Mahut - StakeNuts's user avatar
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 ...
georgeos's user avatar
  • 1,754
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 ...
monolith's user avatar
  • 323
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 (...
jnprogrammer's user avatar
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 ...
Szabolcs Eitzenberger's user avatar
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 ...
Jacob - SNOWY Pool's user avatar
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/...
Marek Mahut - StakeNuts's user avatar
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 ...
Jey's user avatar
  • 1,549
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
Mladen Lamešević's user avatar
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 ...
h1ddenproc3ss's user avatar
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/...
sean's user avatar
  • 1,463
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 [|| \ ...
Kỳ Anh's user avatar
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!
Marek Mahut - StakeNuts's user avatar
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.
Marek Mahut - StakeNuts's user avatar
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 ...
Fermat's user avatar
  • 1,862
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 ...
georgeos's user avatar
  • 1,754
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 ...
DeCentN2Madness's user avatar
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). ...
iOddestHumanDad's user avatar
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.
George - APEX Stake Pool's user avatar
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 ...
Tygar Pool's user avatar
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 ...
CicadaTactics's user avatar
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": "...
Tygar Pool's user avatar
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 ...
Andy Jazz's user avatar
  • 1,777
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 ...
Mihai Codescu's user avatar
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 ...
Will's user avatar
  • 1,162
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 ...
Prashanth S.'s user avatar
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:...
MC_Brisbane - JUST Pool's user avatar
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, ...
sean's user avatar
  • 1,463
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 ...
Fermat's user avatar
  • 1,862

Only top scored, non community-wiki answers of a minimum length are eligible