NFT Marketplace Issue

Iā€™m not familiar with that code, I donā€™t know what could be wrong

Ok. Can you suggest who I could talk to about that? Itā€™s the Marketplace boilerplate code linked from the ā€œI Cloned OpenSeaā€ tutorial vid. I donā€™t know if that was written by anyone from Moralis?

you could try to look in the code that displays the items for sale, to see what it does

you can add some logging, to see what happens

you could post some code snippet on forum

Thanks for taking so much time to pay attention to my issue.

I guess I will try to figure out if this is a ā€œbug or a featureā€, and go from there.

1 Like

yes same issue here. I have no idea either why it randomly chooses the NFT IDā€™s that it does or how to order the query on the display end.

It should be:

  1. Paginated results with max 100 per page (set to max moralis query)
  2. filtered by ALL collection or ONLY FOR SALE.
  3. OR just list the FOR SALE nfts FIRST

Im learning but would be willing to spend some time with someone researching and making the above happen

You can read this for an example. Because results are returned randomly from the API, youā€™ll need to get all of the collection data together and from there you can filter by NFTs for sale (checked against your MarketItem table).