[solved] How long doest it take to take effect for disable_total flag

const options = {

      address: currentAccount,

      chain: Moralis.Chains.POLYGON_MAINNET,

      "disableTotal": 'false'

    };

    const NFTS = await Web3Api.account.getNFTs(options);

    setNfts(NFTS.total);

Where is the problem here?

what happens? it should work if you have latest version of the SDK

console.log(’'NFTS", NFTS) and you will see there is no total. To get total it should be something like -> NFTS.jsonResponse.total, see the log

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.