Пост
Поделитесь своими знаниями.
Can blob_id replace image_url in NFT contracts on Sui?
I'm working on my NFT project and considering uploading NFT images to Walrus. I'm curious if Sui's display property supports using the blob_id as an image_url in NFT contracts. Would marketplaces like SuiVision recognize and render the images appropriately, or do I need a workaround?
- Walrus
- Typescript SDK
Ответы
2Currently, you can't directly use the blob_id as the image_url in NFT contracts for Sui. Instead, you need to set the image_url to the URL of an aggregator along with the blob_id. For example, you can provide a URL like https://blobid.walrus/qwer5678…
, which uses the blob ID to fetch the image through an aggregator system. One concern is if the aggregator's URL breaks or changes, you might need a function to update the NFT with a new URL. Alternatively, using an intermediary layer between the NFT and various aggregators could help ensure the image remains accessible.
It's not currently in the plans for Sui's system or marketplaces like SuiVision to automatically recognize and render images just from blob_ids directly. It seems placing the responsibility on other apps is the current way forward.
Знаете ответ?
Пожалуйста, войдите в систему и поделитесь им.