7

I was wondering how it is possible to actually validate if a certain Token is an NFT without having to inspect the code of the script which mints that Token? Only by checking if the current quantity is 1 will certainly not ensure that it won't be possible to mint more of that Token.

1 Answer 1

8

You can check the token policy for that. For most NFT projects you can look it up on https://pool.pm

A token policy can look like this:

{
  "scripts": [
    {
      "keyHash": "66833acfcf26d87e56bc829aa7bcef13295d4eee4d8b442175bd67a9",
      "type": "sig"
    },
    {
      "slot": 31882046,
      "type": "before"
    }
  ],
  "type": "all"
}

You can see the "slot": 31882046 and "type": "before" values which means tokens with this policy can only be minted before slot 31882046. To be sure that your NFT is unique, you can check that the quantity is 1 and the current slot of the blockchain is later than the one mentioned in the policy.

This policy is from the following NFT: https://pool.pm/1131301ad4b3cb7deaddbc8f03f77189082a5738c0167e1772233097.CardanoBits1947

5
  • How do you check the quantity? Aug 4, 2021 at 15:58
  • 1
    You can see the quantity on pool.pm on the asset or on cardanoscan.io when searching for the policy id. These are just 2 of many options.
    – eddex
    Aug 4, 2021 at 16:31
  • How to check quantity using CLI? :)
    – sloik
    Aug 15, 2021 at 17:08
  • Hi @sloik, I'd recommend you create a new question for this.
    – eddex
    Aug 16, 2021 at 5:33
  • @eddex cardano.stackexchange.com/questions/2348/… done :)
    – sloik
    Aug 16, 2021 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.