Export Account Secrets
Exporting the secret mnemonic an account is the only way to recover it when lost.
Parameters
Required Param
Purpose
Requirements
account_id
The account on which to perform this action.
Account must exist in the wallet.
Example
{
"method": "export_account_secrets",
"params": {
"account_id": "3407fbbc250799f5ce9089658380c5fe152403643a525f581f359917d8d59d52"
},
"jsonrpc": "2.0",
"id": 1
}{
"method": "export_account_secrets",
"result": {
"account_secrets": {
"object": "account_secrets",
"account_id": "3407fbbc250799f5ce9089658380c5fe152403643a525f581f359917d8d59d52",
"entropy": "c0b285cc589447c7d47f3yfdc466e7e946753fd412337bfc1a7008f0184b0479",
"mnemonic": "sheriff odor square mistake huge skate mouse shoot purity weapon proof stuff correct concert blanket neck own shift clay mistake air viable stick group",
"key_derivation_version": "2",
"account_key": {
"object": "account_key",
"view_private_key": "0a20be48e147741246f09adb195b110c4ec39302778c4554cd3c9ff877f8392ce605",
"spend_private_key": "0a201f33b194e13176341b4e696b70be5ba5c4e0021f5a79664ab9a8b128f0d6d40d",
"fog_report_url": "",
"fog_report_id": "",
"fog_authority_spki": ""
}
}
},
"error": null,
"jsonrpc": "2.0",
"id": 1,
}Outputs
If the account was generated using version 1 of the key derivation, entropy will be provided as a hex-encoded string.
If the account was generated using version 2 of the key derivation, mnemonic will be provided as a 24-word mnemonic string.
Last updated
Was this helpful?