I encountered an issue with SocketProvider V6 not being able to use today #3966
Unanswered
jiaolipeng
asked this question in
Q&A
Replies: 1 comment
-
The SocketProvider is an abstract class and not meant to be instantiated directly. You likely want the WebSocketProvider, which is a subclass of SocketProvider that uses WebSockets as its transport layer. :) |
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.
-
Ethers Version
6.3.0
Search Terms
No response
Describe the Problem
Provider is an empty object,
provider._websocket.on("error", async () => {})
Code Snippet
Contract ABI
const iface = new ethers.Interface([ "function mint() external", ])
Errors
Environment
node.js (v12 or newer)
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions