-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I use the unlockAccount method? #986
Comments
in stackexchange they says web3.personal.unlockAccount("0x..", "", 1000); Please test and report if this works with web3 1.0 beta .18 . I am also facing this issue. |
I've tested this on web3 1.0-beta 18 and can confirm it works with the following code. The only difference is the call chaining, it's web3.eth.personal instead of web3.personal.
|
the previous code throws an error for me for "web3": "^1.0.0-beta.20":
|
@serge-nikitin Make sure "personal" is enabled in the RPC/IPC API options when starting geth. https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options |
Thanks, I have to solve it |
web3.eth.personal.newAccount only returns true or false then how can I get the address of the created account using web3? |
@sidharthaA #1157 is going to resolve that. |
When you manually create an account, I get: "Error: Returned error: Error: could not unlock signer account" How do you do this if you did web3.eth.accounts.create()? You get a account object back but you're not setting a password when you call that function. |
@Suhail The process is kind of tricky for now as per my knowledge |
Hi all, I have a similar situation with creating new accounts and unlocking them. P.S. All this through nodejs |
While starting the ethereum blockchain, make sure "personal" is enabled in the
|
#HrishikeshFC Thanks for reply, i switch to rpc and php, and work well for now. Thanks again. |
web3.eth.personal.newAccount('!@superpassword') this is hard to believe that create not working... hard! |
@jbarros35 |
Hi, I'm using web3 beta 33. Now I think its fine the issue is when we at first time install web3 it won't intall the beta.. they install 0.2.2 |
@VikkiUser You said "Thanks for reply, i switch to rpc and php, and work well for now. Thanks again." Can you please tell me how you handled unlocking and re-locking accounts using RPC? |
Where can I see the full example with login into MetaMask? All the tutorials contain random chunks of code which look like normal but become a hell of nested code together. |
Hi @stone212
|
This demo is about the use of the unlockAccount method. The documentation is in Chinese, but the code is easy to understand。 |
Still confused by this..
This works and a new account[6] is created on the node having address
Second connected issue when trying to transaction from created account.
What is the relationship between personalNewAccount("secret") and privateKey as they appear to not be the same thing ? or how to generate privateKey from "secret" after account has already been created using the API with secret. once NewAccountIdentifier ac is not longer accessible ? |
the doc is ....
// TODO
getAccounts, unlockAccount, lockAccount, sendTransaction, ecRecover
The text was updated successfully, but these errors were encountered: