No pools found with enough liquidity (skipping worthless tokens in array)

Hi all. I am looking to calculate the value of a wallets tokens [in an array] but naturally some tokens do not have value. How do I then skip the tokens that do not have value with reference to my code below?

if (notAppT?.length > 0) {
      for (let i = 0; i < notAppT?.length; i++) {
       console.log(notAppT[i]?.token?.contractAddress)
        var tik = await tok({ address: notAppT[i]?.token?.contractAddress })
      }
      console.log(tik)
    }

Hi @CleanMcGerk

You can try using the possible_spam value from the token metadata as a filter to ignore getting prices.

here is how the data will looks like

 {
    "token_address": "0x3c978fc9a42c80a127863d786d8883614b01b3cd",
    "symbol": "USDT",
    "name": "USDTOKEN",
    "logo": null,
    "thumbnail": null,
    "decimals": 18,
    "balance": "10000000000000000000000",
    "possible_spam": true
  },
1 Like