Skip to content
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

personal_newAccount does not exist/is not available #2723

Closed
362228416 opened this issue Jun 21, 2016 · 11 comments
Closed

personal_newAccount does not exist/is not available #2723

362228416 opened this issue Jun 21, 2016 · 11 comments

Comments

@362228416
Copy link

web3.personal.newAccount('123456', function(e, res){
    console.log(e, res)
});

output

The method personal_newAccount does not exist/is not available] undefine
@karalabe
Copy link
Member

Are you running with code from the Geth console or from an external JavaScript environment? If you connect an external environment to Geth via the HTTP-RPC interface, by default the personal namespace is not available due to security considerations.

@362228416
Copy link
Author

How to start ?

@362228416
Copy link
Author

I need use rpc call newAccount 、 sendTransaction .. api , how to ?

@362228416
Copy link
Author

It is done.

@omkarkhair
Copy link

Can you please elaborate on how this was done?

@karalabe
Copy link
Member

karalabe commented May 5, 2017

If you want to use the personal namespace, either do if from the Geth console or attach to Geth via an IPC connection that's assumed to be secure. Anything else is irresponsible :P

@raza-basit
Copy link

raza-basit commented Sep 7, 2017

Run your node with --rpc and --rpcapi personal,web3 flags.

i.e. geth --dev --rpcapi personal,web3,eth --rpc

You may need to add --rpccorsdomain "<your-domain>", in case you are using web3 in the web.

geth --dev --rpcapi personal,web3,eth --rpccorsdomain "your-domain"

@mclrk
Copy link

mclrk commented Sep 21, 2017

I want to have two computers: 1 that hosts my web application and 1 that hosts my GETH node. Is there a safe way to have the web app make rpc calls to the geth node? I want the web app to have accesss to the "personal" api.

@362228416
Copy link
Author

@mclrk Limit network access, use firewall to restrict IP, or nginx reverse proxy, and configure HTTP basic

@junnyxi
Copy link

junnyxi commented Jan 5, 2018

after startup, there is a brief:
modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 shh:1.0 txpool:1.0 web3:1.0

so,the command will be:
./geth --rpc --rpcport 19910 --rpcapi personal,web3,eth,net --datadir testNet --dev console 2>> test.log

@agiratech-guru
Copy link

@junnyxi how to get some Faucet coins for that address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants