Hi
I wanted to pull some data for analysis, so I wrote some python code to loop through the " Get NFTs by contract" endpoint. As long as the endpoint returns a cursor, it loops and re-runs with that cursor to get the next page of results (up to a max number of runs I set).
A test NFT contract I tried with, has 5000 NFTs. Mistakenly I asked it to loop over 100 times, as I assumed I’d need to pull data on 10k NFTs (the extra 5 runs over 100 just to be sure).
To my surprise it printed 10,500 results.
I then discovered the last 5,500 (over the 5000 existing NFTs) was just the last page of results over and over again.
What is the expected behaviour after reaching the end of all existing NFTs in the contract? Surely it should not return a cursor as there would be no next page of results?
But then I seem to recall seeing you guys turned off the ability to get total max number of NFTs by contract, at some point? Is this why the endpoint would seem to continue forever (if we didn’t limit it to X number of runs manually?)
Thanks
Jimmy