get_private_key
get_private_key
调用返回钱包可以访问的全部根私钥。
请求参数
响应结果
get_private_key
调用返回一个JSON对象,主要包含以下字段:
- private_key:私钥数据对象
- success:是否成功
示例代码
请求:
curl --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-d '{"fingerprint":3967641394}' \
-H "Content-Type: application/json" \
-X POST \
https://localhost:9256/get_private_key
响应:
{
"private_key": {
"fingerprint": 3967641394,
"pk": "a8b1e7599038d548f0d1360b98f5c820bae3e107b7c819a3b847200b6dd3448ac9bf8c7dd9c9e689cca386332afa9e8e",
"seed": "one juice raccoon doll network crime orient artwork zebra candy cry trouble almost brand harbor replace dune visit figure monitor wall monkey erode connect",
"sk": "712dbb0bb483f6ad2d30f1d5dd0809ffdb2ede6b104b99f5c11cb6c6b710cb5a"
},
"success": true
}