personal_exportKeyJson

描述:导出账户KeyStore密钥,并设置新密码。

parameter

数据类型 描述
string 账户地址
string 初始密码,即使用 personal_newAccount 创建时的密码
string 导出时设置的加密密码

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_exportKeyJson", "params": ["0x330fC2616b9d9010B8BB8d43eD3316d6756EaAC6", "123", "123"]}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x7b2261646472657373223a2266636431366361353037323036316266326464633261373966383732333731643039646431386333222c2263727970746f223a7b22636970686572223a226165732d3132382d637472222c2263697068657274657874223a2235383038333938353239303930303031663962313463653833613961353264643366666636316266336262343966336634373734616238306262646433313966222c22636970686572706172616d73223a7b226976223a223634666634613132336630636333346234646332623433643262316136353632227d2c226b6466223a22736372797074222c226b6466706172616d73223a7b22646b6c656e223a33322c226e223a3236323134342c2270223a312c2272223a382c2273616c74223a2262663862623134656134336639383261353733313465383365613835663063313336396539643839343937373564313235366431663333366461613639386335227d2c226d6163223a2231306632396664663565633361633962316531336238326630323538393332346530326338633562633033343165393438353563633230356461386139326231227d2c226964223a2234616461353036362d623134352d313165612d613165312d336166396433393137616264222c2276657273696f6e223a337d"
}