0

i want to create a new account(user) and add it to my private blockchain from my web interface ?

any exemple or idea please !

i work with eris platform

3
  • The title and the body of question have a little different sence. What do you really want, create a new node or create a new account(user) from web interface ? Mar 28, 2017 at 20:05
  • @AlexeyBarsuk i want to create a new account (user) from web interface Apr 3, 2017 at 9:53
  • so this answer is what you need ethereum.stackexchange.com/a/13645/6041 Apr 3, 2017 at 9:59

2 Answers 2

1
  1. Enable personal API when launching your node
    geth --rpcapi="web3,personal" ....     
  1. You can create new account this way. Take a look at https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal
    web3.personal.newAccount("account_password");
0

To open a new account in blockchain from the web, run the geth instance in --rpc enabled.

Using the web3.js you can connect to the blockchain network and do all the commands we do in the geth console. Make sure cors enabled in geth.

But to start and stop new node itself, consider the below

I don't see a way to it directly.

But If you have an idea of Docker and swarm,

you all simply write a web app, with contains your metadata of the network like(genesis.json,networkid, port) you can initialize a node by writing sequence of commands like creating a docker container inside that install ethereum, geth then copy your genesis file start the node.

Using this you can create, delete, start, stop the node using your web application.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.