nftscan获取个人地址下的所有nft默认数据是只显示20条,由于需要过滤我需要全显示,所以?

由于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);
  }
请先 登录 后评论

1 个回答

? or ?
请先 登录 后评论
  • 1 关注
  • 0 收藏,897 浏览
  • ? or ? 提出于 2022-11-28 16:40

相似问题