Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature-request] Get Object by UID #4722

Closed
punwai opened this issue Sep 19, 2022 · 1 comment
Closed

[feature-request] Get Object by UID #4722

punwai opened this issue Sep 19, 2022 · 1 comment
Assignees
Labels
rpc Type: Enhancement New feature or request

Comments

@punwai
Copy link
Contributor

punwai commented Sep 19, 2022

Currently, when an object is stored inside another object, there is no way to query the object's ID from a full-node. This makes the tracking of an asset quite difficult. For example, if you have an NFT, and you wrap it around another Shared Object so that you can use it in an NFT sale, that NFT now becomes unqueriable by its ID.

A way I've been using to avoid this problem is to listen for events emitted during the wrapping of NFTs and create an NFT ID <-> Wrapper ID mapping within my internal DB -- the next time someone queries for an NFT's ID to display or view, I fetch the ID of its wrapped object. However, in my opinion, this puts a lot of the work on the developers and greatly increases the complexity of the frontends that are built on Sui.

@punwai punwai added the doc-issue Issue submitted using the Doc issue template label Sep 19, 2022
@punwai punwai added Type: Enhancement New feature or request rpc and removed doc-issue Issue submitted using the Doc issue template labels Sep 19, 2022
@punwai punwai assigned patrickkuo and lxfind and unassigned patrickkuo Sep 19, 2022
@666lcz
Copy link
Contributor

666lcz commented Nov 10, 2022

duplicates #5816

@666lcz 666lcz closed this as completed Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rpc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants