solana-nft-token-metadata-update
solana-nft-token-metadata-update copied to clipboard
Image is not getting updated in metadata
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
Any errors? Hard to say without details
@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
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
- upload new image to arweave manually or with some scripts,
- then create new json with such updated links
- Upload this new json to arweave
- 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