AttributeError: 'Web3' object has no attribute 'fromWei'

1k views Asked by At

I have been receiving this error how do I solve it AttributeError: 'Web3' object has no attribute 'fromWei'

I have tried toWei and plenty of other stuffs but nothing seem to work what do I do I really need someone to help me

Is it a problem with nodes cause I have tried all possible nodes and it still gave me the same error

1

There are 1 answers

0
Mikko Ohtamaa On

Web3.py version 6.0 renamed all functions to snake_case to conform PEP-8 style guide.

The correct function is Web3.from_wei.

See Web3.py release notes.