我想使用web3.js 在web3.js 1.0.x中,我们有以下方法: 或至少使用此方法: 但是不幸的是,我在web3.js v0.x中没有任何等效的方法 您知道在web3.js v0.x中创建新帐户的任何方法吗? P.S:此主题(Create an account with web3.js v0.2.6)与此主题相关,但其中没有任何正确的替代解决方案。web3.eth.accounts.create();
web3.eth.accounts.privateKeyToAccount(myPrivateKey);