2

I know about token registry, which is off-chain, but I noticed that some tokens such as HOSKY are not in token registry and yet they have logo, description, URL and coin name visible on pool.pm.

Is it possible to add extra metadata when minting the coin, such as it's done with NFTs? Also https://developers.cardano.org/docs/native-tokens/minting describes only most basic policy:

vi minting-policy
{
  "keyHash": "your_key_hash",
  "type": "sig"
}

What other keys are accepted and how do they affect the policy? Is this described anywhere in detail?

2 Answers 2

1

HOSKY (very, very, loosely) follows the 721 NFT metadata spec to have onchain metadata, as you can see here:

{
  "721": {
    "a0028f350aaabe0545fdcb56b039bfb08e4bb4d8c4d7c3c7d481c235": {
      "HOSKY": {
        "HOSKY": {
          "website": "https://hosky.io"
        }
      }
    },
    "copyright": "HOSKY IO; all rights reserved",
    "publisher": [
      "hosky.io"
    ],
    "version": 1
  }
}

Though this doesn't include an image, I'm unsure how they got their logo on pool.pm, perhaps this is an ad-hoc thing they arranged with pool.pm. As you can see from the onchain metadata, they didn't include enough metadata on-chain for a logo (though you could use the "image" property in the NFT metadata to facilitate this.)

To answer your question about minting policies, this is completely separate to the metadata. The metadata is just supplied (as a file input to CLI or as raw JSON) to the minting TRANSACTION. It is not linked to the minting policy, they have used a timeLocked + pubKey all policy for minting HOSKY tokens:

{
   all: [
      {
         pubKey: "421d2150828730433df35f93088bfc223f9ab3b74ad8333c160625f7"
      },
      {
         invalidAfter: 49428890
      }
   ]
}
2
  • oh, so the NFT metadata can be applied for non-NFT assets as well? is this a feature or a bug? :) also why is this called "721"? one more question - is this something you would recommend to do for non-NFT assets? Or is the registry preferred way? Or maybe combination of both?
    – Petr
    Dec 6, 2021 at 18:33
  • Yeah technically you can put whatever you want in the metadata. You can choose to follow the spec if you want, since many apps will look for and interpret this metadata based off the standard. I think 721 is actually a historic reference to the Ethereum NFT metadata standard: eips.ethereum.org/EIPS/eip-721. I would say the registry is still the preferred way, but a combination of both isn't a bad idea IMO.
    – Thom
    Dec 7, 2021 at 9:33
2
  1. Is it possible to specify metadata for native asset on-chain?

Yes, you can add metadata for your fungible tokens.

  1. yet they have logo, description, URL and coin name visible on pool.pm.

Not sure but maybe you're confusing HOSKY tokens:

  • Hoksy tokens, they don't have image, description, etc, therefore nothing is displayed on pool.pm. You can check here
  • Hoksy NFTs, they comply with the standard, therefore, they display an image on pool.pm. You can check here

If you see, they use different policies with different metadata.

  1. What other keys are accepted and how do they affect the policy? Is this described anywhere in detail?

Regarding to policies, you can find more information here: Simple Scripts

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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