parity_newAccountFromPhrase - 用助记词创建新账户
parity_newAccountFromPhrase
调用使用指定的助记词创建新账户。
调用参数
- 用来创建账户的助记词,字符串
- 新账户的密码
返回值
parity_newAccountFromPhrase
调用返回新创建的账户地址。
示例代码
请求:
~$ curl --data '{
"method":"parity_newAccountFromPhrase",
"params":[
"stylus outing overhand dime radial seducing harmless uselessly evasive tastiness eradicate imperfect",
"hunter2"
],
"id":1,
"jsonrpc":"2.0"
}' -H "Content-Type: application/json" -X POST localhost:8545
响应结果:
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x407d73d8a49eeb85d32cf465507dd71d507100c1"
}