I use the Opensea Plugin extensively throughout my app. There are a few things that will make my life so much easier:
-
create new function
getCollection
to return array of objects with same fields as the object returned bygetAsset
.
Basically, this is batchedgetAsset
. Specifically I would like the contract metadata and opensea orders in the objects I receive from Web3APIgetAllTokenIds
. Currently I have to make individual requests ofgetAsset
with eachtokenId
received fromgetAllTokenIds
-
filter NFTs by attribute on
getCollection
Allow an array of filters to be applied togetCollection
. For example, I should be able to pass
[ { "background", "blue" } ]
and it should return all NFTs that have that attribute.
If I pass
[ { "background", "blue" }, { "nose", "piercing" } ]
,
it should return all NFTs containing blue background and nose piercing.
If no filter is passed, return all NFTs as usual. -
filter NFTs by orders (listings and offers)
Allow a filters to be applied togetCollection
for NFTs containing an active listing.
Also, allow a filter to be applied togetCollection
for NFTs containing an active offer. -
return all price history for a NFT collection
It is already available through Web3API functiongetWalletTokenIdTransfers
but it must be called individually for eachtokenId
. If this could be added as a function in Opensea Plugin, such asgetCollectionHistory
, that would be great. -
NFT Attribute List and Counts
In newly createdgetCollection
, have new field that has a list of attributes along with the number of NFTs that have that attribute.