0

Provider used for Ethereum is Infura, but there is no any provider for Ethereum Classic.

Previously tested Ethercluster endpoint to access APIs for Ethereum Classic, not able to connect with Kotti endpoint.

0

You can easily get a response from Ethercluster for ETC with the following curl command:

curl --data '{"method":"eth_getBlockByNumber","params":["0x7B98A0", false],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://www.ethercluster.com/etc

You can also do the same for Kotti and check its parity node status:

curl --data '{"method":"parity_nodeStatus","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://www.ethercluster.com/kotti

When doing it via web3, make sure you disable SSL verification since Ethercluster doesn't provide you a client key to authenticate. You can also follow the docs for ethercluster to build your own version of Infura: https://docs.ethercluster.com/

  • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review – shane Aug 29 at 19:03
  • 1
    Updated my answer @shane – Yazanator Aug 29 at 19:22
  • @Yazanator, will you please elaborate more about Ethercluster for Kotti (Testnetwork)? And is all methods of web3 i.e,. eth_getBlockByNumber will be accessible just with ethercluster kotti endpoint? – Rudrika Aug 30 at 5:05
  • @Rudrika Yeah, Kotti is an EVM like other chains, so whatever endpoints Parity provides are available. I provided two working examples for ETC and Kotti that you could have used to answer your own question in the comments, but I'll answer it for you in the hopes that it clarifies things for you. Yes, Kotti endpoint has eth_getBlockByNumber, here's the curl command to get it for first block: ``` curl --data '{"method":"eth_getBlockByNumber","params":["0x0", false],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST ethercluster.com/kotti ``` – Yazanator Aug 31 at 12:21
  • @Yazanator, Alright, does all method of eth/JSON RPC API will work? i.e. 'sendTransaction'. – Rudrika Sep 2 at 4:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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