Publication
Partagez vos connaissances.
How to keep blob ownership when using Node.js for publishing?
I'm building a content posting platform called Scribe, where users can write and post content. Currently, when I publish blobs using CLI, my address is the owner. However, when using Node.js, the publisher's address becomes the owner. Is there a way to maintain ownership of blobs published through Node.js?
- Walrus
Réponses
2Currently, there isn't native support for maintaining ownership via the HTTP API, but plans to add this feature are underway. As a workaround, using the send_object_to
query parameter when storing a blob can transfer the blob object to your specified address, thereby maintaining ownership.
You can maintain ownership of blobs published with Node.js by setting up your own internal publisher using walrus publisher
. This will ensure your CLI SUI account owns the objects. However, you'll need to implement some logic to transfer the blobs to the poster's account if needed.
Connaissez-vous la réponse ?
Veuillez vous connecter et la partager.
Walrus is a decentralized storage and data availability protocol designed specifically for large binary files, or "blobs"
Gagne ta part de 1000 Sui
Gagne des points de réputation et obtiens des récompenses pour avoir aidé la communauté Sui à se développer.