personal_newAccount
描述:在当前节点创建一个账户,返回新创建的账户地址
注意:在当前节点下会生成 keystore 文件
parameter
数据类型 | 备注 |
---|---|
String | 密码 |
"params": ["123"]
return
数据类型 | 备注 |
---|---|
String, 20 字节 | 账户地址 |
example
Request:
curl -X POST \
http://127.0.0.1:8283 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "personal_newAccount", "params": []}'
Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0xA6FB67336FA6678e63b82700eba6b6275B01B6DD"
]
}