I have a problem where the JavaScript array is stuck in pending. Is this because there are too many requests?
const removeBots = async(arr) => {
try {
for (let i = 0; i < arr.length; i++) {
console.log(i)
axios.get(`https://api.etherscan.io/api?module=account&action=txlist&address=${arr[i]}&apikey=${apiKey}`)
.then(res => console.log(res.data.result.length))
}
console.log("Done");
console.log(walletsFinal);
} catch (e) {
console.log("error", e)
}
}
Edit- I noticed the formatting problem with the backticks and fixed it. I'm trying to get around the issue where I'm getting rate limited of 5 calls per second for the API.