NewKey API

This API creates a new account (i.e. a private key/address pair), and encrypts the private key under ~/.scriptcli/keys/encrypted/ by default.
RPC Method: scriptcli.NewKey
Query Parameters
password: the password for the new account
address: the address of the newly created account
// Request
curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"scriptcli.NewKey","params":[{"password":"qwertyuiop"}],"id":1}' http://localhost:16889/rpc
// Result
"jsonrpc": "2.0",
"id": 1,
"result": {
"address": "0x8318dd49f83A2684E30d5fB50cD0D3D69aA82EAd"
Last modified 10mo ago