I already know what is the difference between accounts.create()
and personal.newAccount()
.
My Geth setting is like this,
--rpcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3"
web3.eth.getBalance()
runs very well.
But both web3.eth.accounts.create()
and web3.eth.personal.newAccount()
don't work.
No any error messages. Just no response.
What can I do for this situation? Help me please.
Here is the example code.
const Web3 = require("web3");
const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); // Geth RPC is working.
...
const password = "test1234";
const account = web3.eth.personal.newAccount(password); // not work.
console.log(account); // not work. not print anything.