Encountered three different issues while trying to use websocket provider with Infura ropsten websocket endpoint.
First error is related to gas price where value returnd by eth.gasPrice is either an 'int' or 'list'
Please include any of the following that are applicable:
Traceback (most recent call last): File "***.py", line 187, in __compute_gas_price gas_price = int(min(gas_price, self.__config.max_gas_price_wei)) TypeError: '<' not supported between instances of 'int' and 'list'
During handling of the above exception, another exception occurred:`
infura ropsten endpoint
Second error is related to block number where the value returned can be either a valid block number or again an empty list
Third error relates to filter creation where sometimes a filter (using createFilter method) is not created properly again returning an empty list which when passed to infura endpint to get all entries complains about invalid id. This can be fixed by replacing empty array with empty string.
pip freeze
outputWhat was wrong?
Encountered three different issues while trying to use websocket provider with Infura ropsten websocket endpoint.
First error is related to gas price where value returnd by eth.gasPrice is either an 'int' or 'list' Please include any of the following that are applicable:
gas_price = int(min(gas_price, self.__config.max_gas_price_wei))
Traceback (most recent call last): File "***.py", line 187, in __compute_gas_price gas_price = int(min(gas_price, self.__config.max_gas_price_wei)) TypeError: '<' not supported between instances of 'int' and 'list'
During handling of the above exception, another exception occurred:`
Second error is related to block number where the value returned can be either a valid block number or again an empty list
Third error relates to filter creation where sometimes a filter (using createFilter method) is not created properly again returning an empty list which when passed to infura endpint to get all entries complains about invalid id. This can be fixed by replacing empty array with empty string.