Solvedweb3.js The method personal_unlockAccount does not exist/is not available

function unlockAcct()
{
var unlock = web3.personal.unlockAccount(web3.eth.accounts[0]);
alert(unlock);
}

The line " web3.personal.unlockAccount(web3.eth.accounts[0]);" returns an error "method personal_unlockAccount does not exist/is not available" when I try to execute from DApp.

16 Answers

βœ”οΈAccepted Answer

@vijayr2410
Well. Looks like it's just require to specify following parameters to resolve this issue. You can close an issue πŸ†—

--rpcapi="db,eth,net,web3,personal,web3"

Other Answers:

i am not clear about where i need to run this command.. --rpcapi="db,eth,net,web3,personal,web3"
because i have tried on geth console but its not working.

run-
geth -rpc --rpcapi="db,eth,net,web3,personal,web3" to make it work.

Ok, I read from ethereum/meteor-dapp-wallet#89 unlocking account can only be done through IPC not http anymore.

More Issues: