Reputation: 1
the code is in the picture below
ERROR:
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '<web3.main.Web3 object at 0x00000292C9A8C6A0>': No scheme supplied. Perhaps you meant http://<web3.main.Web3 object at 0x00000292C9A8C6A0>?
Upvotes: 0
Views: 472
Reputation: 337
Missing schema means you haven't supplied the http:// or https:// in your w3 URL variable.
try to print w3 to see if it complies with the schema needs.
try to update w3
original:
w3 = Web3(HTTPProvider('HTTP://0.0.0.0:7545'))
update:
w3 = Web3(HTTPProvider('http://0.0.0.0:7545'))
Upvotes: 0