Closed IronSight87 closed 2 years ago
The default polling period is 4s for polling-based providers. If you reduce that you may incur additional charges from your backend and it is not recommended for the community api keys.
Six seconds is not a long time, but if your application requires low-latency, you should definitely be running your own infrastructure or paying for the higher-tier options for your backend services to achieve them.
Hi there,
please see my code example below. I am waiting for a "Mint" event for a LP contract. My callback is fired, but very late. The actual "Mint" event was fired at 2:59:18 PM (UTC) and my function was triggered at 2:59:24 PM (UTC). Meaning a delay of 6 seconds, which is a lot. Futhermore I then triggered a buy action at 2:59:24 PM (UTC) which was completed at 02:59:30 PM (UTC). Meaning another 6 seconds delay. Other buyers (>300) where able to trigger the buy action 1 second after the Mint event occured. Is there some kind of delay in the ethers library? Thank you in advance for your help!
Mint event transaction: https://bscscan.com/tx/0x71206e420491ff872ff135bb1f3f95a8f8658e64e723220f453e24e4bc048e78