如何在web3.js v0.x中注册帐户

时间:2018-11-24 23:27:07

标签: ethereum web3js

我想使用web3.js 创建一个新帐户

在web3.js 1.0.x中,我们有以下方法:

web3.eth.accounts.create();

或至少使用此方法:

web3.eth.accounts.privateKeyToAccount(myPrivateKey);

但是不幸的是,我在web3.js v0.x中没有任何等效的方法

您知道在web3.js v0.x中创建新帐户的任何方法吗?

P.S:此主题(Create an account with web3.js v0.2.6)与此主题相关,但其中没有任何正确的替代解决方案。

0 个答案:

没有答案