我在kovan网络上有一个奇偶校验节点。如何使用web3py创建帐户?我使用web3.personal.newAccount()=>which提供错误,因为没有找到任何方法。
什么api是可用的奇偶?
发布于 2018-10-03 17:57:54
不幸的是,personal模块没有在客户端之间标准化。parity支持与geth不同的API。创建帐户的一些备选方案:
>>> 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) 奇偶-链kovan帐户新加载配置文件从users.toml请注意,密码是不可恢复的。输入密码:重复密码:0x66a4b6f39b4c3e7203ab9 caeecbad58d8f29b046
https://ethereum.stackexchange.com/questions/59877
复制相似问题