2

I am minting an NFT and setting the metadata and image URI to public storage buckets on Google Cloud Platform (GCP). I am able to view the image and metadata on my wallet, but only x-ray explorer supports it.

I can't view the image on the explorer, solscan or solanaFM.

Here is the token on XRAY: https://xray.helius.xyz/token/96prF4jTGCMdEPnpMEc9mjRrR3qG3dL9KoWwN2ZrRGjD?network=devnet

2
  • 1
    What happens when you view the browser console when you try and view one? Can you comment the NFT Id here? :)
    – Tony Boyle
    Oct 4 at 17:35
  • @TonyBoyle here is the NFT 96prF4jTGCMdEPnpMEc9mjRrR3qG3dL9KoWwN2ZrRGjD
    – Jimii
    Oct 4 at 17:39

1 Answer 1

3

It looks like you have a cors error from your google cloud storage. If you check the network tab when you load up sol-scan or the other nft veiwers you'll see it fails to fetch your json metadata, which in turn holds your image uri.

https://solscan.io/token/96prF4jTGCMdEPnpMEc9mjRrR3qG3dL9KoWwN2ZrRGjD?cluster=devnet#metadata

Heres the docs for google cors https://cloud.google.com/storage/docs/cross-origin

You'll most likely have to edit the cors settings for your bucket https://cloud.google.com/storage/docs/xml-api/put-bucket-cors

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.