Hello!
I have a problem with QuickNode; I'm using it for testing with the free plan. I've written a Node.js script that uses the "swapExactTokensForTokens" method on PancakeSwap's Dex. The purpose of this script is to execute the "swapExactTokensForTokens" method for two or more wallets.
I'm testing on two wallets, and I'm encountering an issue with QuickNode. I'm getting an error:
{
"code": "UNKNOWN_ERROR",
"error": { "code": -32012, "message": "credits limited to 330/sec" },
"payload": { "method": "eth_chainId", "params": [], "id": 17, "jsonrpc": "2.0" },
"shortMessage": "could not coalesce error"
}
Somehow, I've exceeded the limit of 330 requests per second. In this script, before using "swapExactTokensForTokens," I make seven requests, including "swapExactTokensForTokens."
Additionally, I perform these swaps in parallel using the async map loop, and then I wait for the responses with const promises = await Promise.all(requestsPromise);.
I can't figure out where these 330 requests per second are coming from. What could be the problem?
Nov 17, 2023, 9:02 PM