parity_newAccountFromWallet - 用钱包对象创建新账户
parity_newAccountFromWallet
利用JSON钱包对象创建一个新账户。
调用方法
- 用来创建新账户的钱包对象字符串
- 新账户的密码
返回值
parity_newAccountFromWallet
调用返回新创建的账户地址。
示例代码
请求:
~% curl --data '{
"method":"parity_newAccountFromWallet",
"params":[
"{\"id\": \"9c62e86b-3cf9...\", ...}",
"hunter2"
],
"id":1,
"jsonrpc":"2.0"
}' -H "Content-Type: application/json" -X POST localhost:8545
响应结果:
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x407d73d8a49eeb85d32cf465507dd71d507100c1"
}