I have created a new address using web3.eth.accounts.create()
and it responds with
{ address: '0x9AA2767207d0aC9cCdD2e3B244210f630588F3E3',
privateKey:
'0x15bc394db36ab8745ca34a9961d84abf5a45697823726d500785df940e416cbc',
signTransaction: [Function: signTransaction],
sign: [Function: sign],
encrypt: [Function: encrypt] }
But in geth console, it lists out all my accounts, except 0x9AA2767207d0aC9cCdD2e3B244210f630588F3E3
. What have gone wrong here? I'm using web3 -1.0.0-beta.34
. I also tried using web3.eth.personal.newAccount('qwerty')
but it shows The method personal_newAccount does not exist/is not available
but clearly they mentioned this method in the 1.0.0 documentation.
I have initialised web3 and personal like
var personal = new Personal('http://localhost:8545' || 'ws://localhost:8546');
web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545') || 'ws://localhost:8546');
Can some one help me on this problem? Thank you.