[SOLVED] getNFTs array limited to 100 objects

I am using the getNFTs function with web3API and the return is limited to 100 NFT objects. How would you increase the limit of objects that can be returned from the call?

you can not increase that limit, you will have to use pagination with cursor to get the data from the other pages

How would I construct the code to get the pagination working? The initial call I have is:

        const options = {chain: 'cronos', address: walletAddress}
        const NFTs = await Web3Api.account.getNFTs(options)

It should be as easy as using .next() on that returned object.


There is the option to use cursor directly too

Thanks! Used the .next() command on the result and this worked.

1 Like