1

Can anyone tell me whether or not there is a WebSocket URL to deal with smart contract events in Ethereum Classic especially? I know ethereum supports WebSockets and we can easily listen to events from smart-contract with web3. But how about ethereum classic?

3 Answers 3

2

Short answer: no idea.

It's not a functionality of the blockchain protocol. It's a functionality in the client nodes.

So the Ethereum itself doesn't care how people interact with it, as long as the data is valid. The clients provide the means for users to interact with the blockchain. So it depends on the client implementation.

Unfortunately I have no idea whether the clients support WebSockets in ETC. If I had to guess, I would guess yes they do, since ETC is not that old-fashioned (yet).

1
  • Yes they do. But yes it's a client feature, nothing related to the Ethereum protocol itself. Commented Feb 2, 2021 at 19:15
0

If you see ethereum then infura does provide the WebSocket URL as in the screenshot below. I am then instantiating web3 with this Websocket URL. But I tried searching such Websocket URL for ETC but couldn't get the one. That's why it's really frustrating. With this now I can listen to the ethereum smart-contract events. I want to do the same in ETC contracts. enter image description here

0

You can use the https://rivet.cloud/. Please go the Dashboard and select the Ethereum Classic. Then you can generate the rpc urls for the Ethereum Classic chain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.