Retrieve NFTs of a collection owned by a specific address #159
mattiNFT
started this conversation in
Feature request
Replies: 3 comments 2 replies
-
We will improve querying a little bit later. |
Beta Was this translation helpful? Give feedback.
2 replies
-
This will be fixed next week. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Awesome guys! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
it would be cool adding a new feature in the API that allows to get a list of NFTs of a particular collection owned by a specific address.
Right now it is possible to do the same thing but first we need to retrieve all the NFTs owned by a specific address without distinction for the collection and then apply a filter for the collection.
More commonly, the filtering is applied on an array but this is not good because the performance.
The issue is particularly visible when i need to retrieve the NFTs from a wallet that owns a large number of NFTs (and this is a possible scenario because there are wallets that owns more than 30k NFTs item).
This is an example of what the hypothetic API call should do:
I wanna retrieve all the CryptoPunks that a particular wallet owns. In the API i'll pass as arguments the contract address of the CryptoPunks and the Wallet address of the owner.
The API should answer with the list of all the token ids including metadata, image etc owned by that specific wallet address.
Speaking with your developers in your Discord server, we have seen two possibles way to solve this:
nft-item-controller
(the name could begetNftItemsByCollectionAndOwner
)collection_address
to this API callgetNftItemsByOwner
(https://api-reference.rarible.com/#operation/getNftItemsByOwner)Maybe the second option should be easier to perform instead of creating a new API from zero.
Beta Was this translation helpful? Give feedback.
All reactions