I am trying to create account for a user using web3.py in my local testrpc ethereum network. I have tried as per the documentation. But I am getting the error
AttributeError: 'Eth' object has no attribute 'account'
Code I am trying :
from web3 import Web3
w3 = Web3(YOUR_PROVIDER)
acct = w3.eth.account.create('KEYSMASH FJAFJKLDSKF7JKFDJ 1530')
I could see there is
accounts object in for
eth object but that is not what I need.
What am I doing wrong ? I could see there is another type of account which is called PersonalAccount in the doc
What is the difference between these two ?