Replies: 1 comment
-
Ok I am beginning to think thats a problem/bug with the way the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to get the event history (for event "Transfer") for a contract. At the moment I do the following:
And that kind of works but while doing it, ethers is somehow generating A LOT of calls to
https://api.etherscan.io/api?module=proxy&action=eth_getBlockByNumber...
. I guess one call per Event? In my case that can be 1000s of events...Is that a valid way to get a lot of events from history? Can I somehow suppress those extra calls (or throttle?) ?
UPDATE: This seems to be fixed by using
const provider = new ethers.providers.Web3Provider(window.ethereum);
. I dont know why that is though. Whats happening in the default provider thats causing those calls?Beta Was this translation helpful? Give feedback.
All reactions