solana-nft-token-metadata-update icon indicating copy to clipboard operation
solana-nft-token-metadata-update copied to clipboard

Image is not getting updated in metadata

Open alpharagesadmin opened this issue 3 years ago • 3 comments

I am trying to update image url in metadata but somehow it is not working. rest i can update same Dev net version https://solscan.io/token/C7fhj29NfoqGf8S2kVGVu8X6DvtjLC2NAT3bwGxQDNLi?cluster=devnet

alpharagesadmin avatar Jan 06 '22 21:01 alpharagesadmin

Any errors? Hard to say without details

jamland avatar Jan 07 '22 09:01 jamland

@jamland no error is appearing. I will try to explain what I want to achieve. When uploading assets to arweave I mistakenly added the wrong image rest of the JSON is correct but only the Image is incorrect. So by using this repo code I want to update the image URL to the correct one.

i try with metadata like name and it work perfectly was able to update the link to but the image URL somehow is not getting updated

alpharagesadmin avatar Jan 07 '22 12:01 alpharagesadmin

I see. First to mention you need to update (replace) whole JSON. You can update it partially because You can't update files on arweave. The only way is update 8mage is

  1. upload new image to arweave manually or with some scripts,
  2. then create new json with such updated links
  3. Upload this new json to arweave
  4. Change NFT uri field to point to this json link with current script

So current script only can do step 4 for you. You can achieve steps 1-3 using candy machine on devnet for exmple

jamland avatar Jan 07 '22 13:01 jamland