dydxprotocol/dydx-v3-python

ConnectionError occur when using Client Module

spicyspyigo opened this issue · 1 comments

After executing pip3 install dydx-v3-python, start python3 and enter the example code, line by line from the top, I will get the error below when I enter
client = Client(network_id=NETWORK_ID_ROPSTEN,host=API_HOST_ROPSTEN, default_ethereum_address=ETHEREUM_ADDRESS,web3=Web3(Web3.HTTPProvider(WEB_PROVIDER_URL)),).

requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8545): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f18cde6d2d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

What's the problem?

I even checked for errors on this line.

I got the answer.
This is issue not in dydx api, it's smth wrong with Web3 lib.
I'll ask the question again with web3 lib support.