personal_exportValKey

描述:使用初始 valKey 密码导出验证者私钥并设置新密码。

parameter

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

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

Response:

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