[英]How can I create account come with mnemonic use web3.py?
account = web3.eth.account.create() 这个账号只有private_key和address,我也想要助记词,怎么办?
为了创建一个帐户,我想要 private_key,address,mnemonic 的结果......我该怎么做?
>>> from eth_account import Account
>>> Account.enable_unaudited_hdwallet_features()
>>> acct, mnemonic = Account.create_with_mnemonic()
>>> acct.address # doctest: +SKIP
'0x5ce9454909639D2D17A3F753ce7d93fa0b9aB12E'
>>> acct == Account.from_mnemonic(mnemonic)
True
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.