go-bitsong icon indicating copy to clipboard operation
go-bitsong copied to clipboard

Query NFTs by Authority

Open giorgionocera opened this issue 3 years ago • 4 comments

In the nft module it could be useful to query the nfts by authority, similarly to how it could be done with the collections. Moreover, it could be useful to paginate the results (since they can become a large number).

Do you agree?

giorgionocera avatar Sep 28 '22 16:09 giorgionocera

Yea, I agree on adding paginations for queries. I think we already have querying nfts by owner. bitsongd query nft nfts-by-owner [owner]

ryusmo avatar Sep 28 '22 17:09 ryusmo

Nice! With respect to the owner and authority they are different attributes. So we could think to add the authority (which is who has the ability to modify the metadata) query. What do you think about it?

giorgionocera avatar Sep 28 '22 17:09 giorgionocera

The pagination is already integrated in the grpc query, howver I think we should set a new index on the store

angelorc avatar Sep 29 '22 11:09 angelorc

This feature could be handled by an offchain indexer (for example subquery network).

angelorc avatar Oct 10 '22 09:10 angelorc