I have a parity node hosted on kovan network. How to create account using web3py? I used web3.personal.newAccount()=>which is giving error as no method found.
What are the api's available for parity?
I have a parity node hosted on kovan network. How to create account using web3py? I used web3.personal.newAccount()=>which is giving error as no method found.
What are the api's available for parity?
Unfortunately, the personal
module is not standardized across clients. parity
supports a different API than geth
. Some alternatives for creating an account:
>>> my_account = w3.eth.account.create('add something random here to improve key generation')
>>> transaction = {
... 'to': '0xF0109fC8DF283027b6285cc889F5aA624EaC1F55',
... 'value': 1000000000,
... 'gas': 2000000,
... 'gasPrice': 234567897654321,
... 'nonce': 0,
... 'chainId': 1
... }
>>> signed = my_account.signTransaction(transaction)
>>> w3.eth.sendRawTransaction(signed.rawTransaction)
parity --chain kovan account new Loading config file from users.toml Please note that password is NOT RECOVERABLE. Type password: Repeat password: 0x66a4b6f39b4c3e7203ab9caeecbad58d8f29b046