2

could someone help me with this please. I am using the polkadot.js explorer to add a collection of NFT's to a chain. I can add the collection using this. enter image description here

Does anyone know how to add the name of an Item? So it will show up here. enter image description here

Thank you

1 Answer 1

3

name comes from ipfs JSON object that you can add using setMetadata call.

Let's say you have an object like

{
 name: 'My NFT #1',
 description: 'My first NFT on pallet uniques',
}

You then pin this object to ipfs first, then you get back ipfs CID, that you set as metadata on your uniques NFT using setMetadata

https://github.com/polkadot-js/apps/blob/master/packages/page-nfts/src/Overview/Collection.tsx#L21

1
  • 1
    Hi, thank you very much for your answer. It's a bit late here now but I will try it tomorrow. Much appreciated mate.
    – Lee
    Jun 10, 2022 at 23:42

Your Answer

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

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