Subscribe to an Event using Default Provider #2552
Unanswered
pascal-mueller
asked this question in
Q&A
Replies: 0 comments
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.
-
Hello,
Edit: Original post below. So after some time I noticed that DefaultProvider() assumes I work in the ETH chain but I actually want to work on BSC. So I got myself a API key from bascscan.com and now trying to use it.
Original post:
I hope I can ask this here. I'm currently playing around with ethers and want to check for newly created tokens on PancakeSwap. Now I don't own a subscription to one of those web3 socket services, so I just use the default provider. I found https://github.com/ethers-io/ancillary-bsc but I still must do something wrong.
Here's what I do:
Now if I run that with nodejs, the event is never being triggered and I fail to see why.
Beta Was this translation helpful? Give feedback.
All reactions