简体   繁体   English

在Pinata中创建CID后,有没有办法改变图片?

[英]Is there a way to change the picture after CID is created in Pinata?

everyone?!每个人?! Can i change the picture after minitng at Opensea?我可以在 Opensea minitng 后更改图片吗?

Upload the image and json file to pinata.将图像和 json 文件上传到 pinata。 And after minting on Opensea, can I change the image on pinata?在 Opensea 上铸造后,我可以更改 pinata 上的图像吗? I want to change the image in Pinata so that it can be applied in Opensea.我想更改 Pinata 中的图像,以便它可以应用到 Opensea 中。 I think i can change the image on own server, but is it possible on pinata?我想我可以在自己的服务器上更改图像,但是在 pinata 上可以吗?

CID is a hash of the file contents. CID是一个hash的文件内容。 So if you change the contents, the CID changes as well.因此,如果您更改内容,CID 也会更改。


Assuming that both image and metadata are on IPFS, there's a workaround:假设图像和元数据都在 IPFS 上,有一个解决方法:

  1. Upload new image上传新图片
  2. Upload new metadata JSON that reflects the new image CID上传反映新图像 CID 的新元数据 JSON
  3. Invoke a function in your contract that changes the URI of the token在您的合同中调用 function 来更改令牌的 URI

If you don't have such function in your contract (and the contract is not upgradable), then it's not possible to perform any change to the NFT.如果您的合约中没有这样的 function(并且该合约不可升级),则无法对 NFT 进行任何更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM