Need assistance with TON NFT metadata display issue

TON NFT Metadata Not Showing Up

I’ve created an NFT on TON but I’m having trouble with the metadata. The NFT item contract seems fine. It’s initialized and returns content that isn’t empty. But here’s the weird part: the metadata I provided doesn’t show up in my wallet or on tonviewer.

I’m pretty sure I’m doing something wrong, but I can’t figure out what. Here’s a snippet of how I’m setting up the metadata:

function buildNFTContentCell(nftData) {
  const contentDict = Dictionary.empty(Dictionary.Keys.BigUint(256), Dictionary.Values.Cell())
    .set(hashString('name'), textToCell(nftData.name))
    .set(hashString('description'), textToCell(nftData.description))
    .set(hashString('image'), textToCell(nftData.imageUrl))

  return beginCell()
    .storeUint(0, 8)
    .storeDict(contentDict)
    .endCell()
}

Any ideas on what I might be missing? Thanks in advance for any help!

hey there FlyingEagle, i had similar issues before. have u tried using the snake_case format for ur metadata keys? like ‘image_url’ instead of ‘imageUrl’. also, double-check if ur content cell is properly encoded. sometimes wallets n explorers can be picky bout the format. good luck!

I encountered a similar issue when working with TON NFTs. One thing to check is the content format you’re using. Make sure you’re following the TEP-64 standard for on-chain NFT metadata. This specifies using a specific format with keys like ‘name’, ‘description’, and ‘image’. Additionally, verify that your image URL is properly formatted and accessible. Sometimes, issues can arise if the image isn’t hosted on a reliable, publicly accessible server. Lastly, it might be worth double-checking your NFT item contract’s get_nft_data method to ensure it’s correctly returning the content cell. If all else fails, you might want to try deploying a test NFT with minimal metadata to isolate the issue.