Good day - is it compulsary to use pagination when the limit is in place? the issue is that I am filtering out all nfts owned by a user bar the 7 collections I want on my dapp meaning sometimes I have no nfts on page one⦠I know I need to somehow use a forloop to populate the array of nfts owned by the user but I am quite lost as to how to do this as I am unsure of where to put the var i
in the
var nfts = await Moralis.Web3API.account.getNFTs(options);
var length = Math.ceil(nfts.total)
var talk =[...nfts]
for(let i = 0; i < length; i++) { talk.push(nfts(i).next())}
//filtering the results by token_address
let filteredNFTs = talk?.filter(
(nftMetadata) =>
nftMetadata?.token_address == (nfgs?.coll)?.toLowerCase() ||
nftMetadata?.token_address == (nfgs?.bakc)?.toLowerCase() ||
nftMetadata?.token_address == (nfgs?.swe)?.toLowerCase() ||
nftMetadata?.token_address == (nfgs?.ssdf)?.toLowerCase() ||
nftMetadata?.token_address == (nfgs?.fffe)?.toLowerCase()
);