Skip to content

Conversation

@zeroxbt
Copy link
Contributor

@zeroxbt zeroxbt commented May 11, 2023

No description provided.

@zeroxbt zeroxbt self-assigned this May 11, 2023
@NZT48
Copy link
Contributor

NZT48 commented Aug 4, 2023

Let's first test out and fix connecting to WSS blockchain endpoint. I am getting this errors when I try:

Error: could not coalesce error (error={ "code": -32601, "message": "Method not found" }, payload={ "id": 27, "jsonrpc": "2.0", "method": "eth_subscribe", "params": [ "newHeads" ] }, code=UNKNOWN_ERROR, version=6.7.0)
    at makeError (/ethers/lib.commonjs/utils/errors.js:125:21)
    at WebSocketProvider.getRpcError (/ethers/lib.commonjs/providers/provider-jsonrpc.js:650:41)
    at /ethers/lib.commonjs/providers/provider-jsonrpc.js:268:45
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 'UNKNOWN_ERROR',
  error: { code: -32601, message: 'Method not found' },
  payload: {
    method: 'eth_subscribe',
    params: [ 'newHeads' ],
    id: 27,
    jsonrpc: '2.0'
  }
}

},
};

const WEBSOCKET_PROVIDER_OPTIONS = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment left to check wss connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants