由于nftscan默认获取到个人地址下的所有人nft后,只显示其中20条,但我需要使用filter进行过滤,如果只显示那20条,意味着过滤不全,所以nftscan让它全展示的代码是多少呢?以下是我的:
const getThisAddressAllErc721 = await evm.asset.getAssetsByAccount(currentUser, {erc_type: ErcType.ERC_721,limit:999});
console.log("getThisAddressAllErc721:",getThisAddressAllErc721);
const filterChooseNfts= getThisAddressAllErc721.content.filter(item=>item.contract_address===CONTRACT_ADDRESS.toLowerCase() || item.contract_address===buildContract.toLowerCase() || item.contract_address===onChainContract.toLowerCase());
console.log("getThisAddressAllErc721:",filterChooseNfts);
}