From 96cc0f7e176487bfb06386fdeb5528fe7b240c97 Mon Sep 17 00:00:00 2001 From: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:01:02 -0700 Subject: [PATCH] Update `keyring_exportAccount` (#1556) * update keyring_exportAccount * add space for admonition to make consistent with rest of docs --------- Co-authored-by: Joan E <153745173+joaniefromtheblock@users.noreply.github.com> --- .../keyring-api/account-management/index.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/snaps/reference/keyring-api/account-management/index.md b/snaps/reference/keyring-api/account-management/index.md index bb55bb12a1e..699b5040fc4 100644 --- a/snaps/reference/keyring-api/account-management/index.md +++ b/snaps/reference/keyring-api/account-management/index.md @@ -113,8 +113,16 @@ null ### `keyring_exportAccount` -Exports the private key of an account managed by the Snap. -A Snap might choose to not support this method. +Exports account data managed by the Snap. +This might include the public key, address, or derivation path. +The exact data exported depends on the Snap's implementation and security considerations. +A Snap might choose to not support this method or limit the data it exports. + +:::warning + +This method can export private keys or any other sensitive data. + +::: #### Parameters @@ -124,9 +132,7 @@ An object containing: #### Returns -An object containing: - -- `privateKey`: `string` - The account's private key. +An object containing the account data. #### Example