1

I'd like to make new account by JSON-RPC.I've checked the wiki of Ethereum, however I could not find out how to do that.

I've found call existed accounts, but it isn't what I want.
eth_accounts

Could you tell me how to do this?

  • Using the personal API over RPC is usually a bad idea. If you are on the same local computer as the node, try using IPC – Tjaden Hess Jul 9 at 12:06
0

you need first to enable personal API using geth --rpc --rpcapi "db,eth,net,web3,personal"

then run your rpc call :

curl -X POST --data '{"jsonrpc":"2.0","method":"personal_newAccount","params":["password"],"id":1}' localhost:8545

Here's the documentation link for newAccount https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_newaccount

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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