I am working on web3 and running a private blockchain
The app.ts file:
import * as Web3 from 'web3';
var web3 = new Web3(new Web3.providers.WebsocketProvider('ws://localhost:8546'));
web3.eth.getAccounts().then(accounts => {
var sender = accounts[0];
web3.eth.personal.unlockAccount(sender, 'password');
});
And I am getting the following error:
Unhandled rejection Error: Returned error: The method personal_newAccount does not exist/is not available