Consensys/ethjsonrpc

Connecting with Infura support ?

kaviyarasu7 opened this issue · 1 comments

Dose this library supports Infura ?
Just tried a below script to connect with Infura.
`>>> c = EthJsonRpc('https://rinkeby.infura.io/3wNHisYyMhD4B0UTAoWs')

c.net_version()
Traceback (most recent call last):
File "", line 1, in
File "ethjsonrpc/client.py", line 159, in net_version
return self._call('net_version')
File "ethjsonrpc/client.py", line 55, in _call
raise ConnectionError
ethjsonrpc.exceptions.ConnectionError
`
Kindly help.

I found it, at least this call works:

>>> from ethjsonrpc import EthJsonRpc
>>> c = EthJsonRpc('rinkeby.infura.io/3wNHisYyMhD4B0UTAoWs', 443, tls=True)
>>> c.net_version()
u'4'

I guess you need to do deeper testing @kaviyarasu7 but at least thats the way to make the call