personal_exportRawKey
描述:使用初始密码导出账户明文私钥,使用时请注意保密安全!
parameter
数据类型 | 描述 |
---|---|
string | 账户地址 |
string | 初始密码,即使用 personal_newAccount 创建时的密码 |
return
数据类型 | 描述 |
---|---|
string | 返回账户私钥,否则返回失败 message 和 code |
example
Request:
curl -X POST \
http://127.0.0.1:8283 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "personal_exportRawKey", "params": ["0xFCD16cA5072061bF2dDc2a79f872371D09dd18C3", "123"]}'
Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x4720f9c0bb691e688999abad4a724382d72bb24df0f16e97e3bd16d61e7e738c"
}