Bài viết
Chia sẻ kiến thức của bạn.
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
Câu trả lời
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.
Bạn có biết câu trả lời không?
Hãy đăng nhập và chia sẻ nó.