> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# useExportPrivateKey

> Returns a mutation that exports an eligible embedded wallet private key.

<MethodDocs
  defaultExpanded={true}
  preventCollapse={true}
  name="useExportPrivateKey()"
  description="A mutation hook that initiates a private key export for a given wallet. Opens a Para-hosted portal page where the key is displayed securely."
  parameters={[
{
  name: "walletId",
  type: "string",
  required: true,
  description: "The ID of the wallet whose private key should be exported."
}
]}
  returns={{
type: "{ exportPrivateKey: (params: { walletId: string }) => void, exportPrivateKeyAsync: (params: { walletId: string }) => Promise<{ url: string, popupWindow: Window | null }>, data: { url: string, popupWindow: Window | null } | undefined, isPending: boolean, error: Error | null, reset: () => void }",
description: "A mutation result with exportPrivateKey / exportPrivateKeyAsync functions. The resolved data contains a url pointing to the Para portal export page and popupWindow (null on React Native)."
}}
  async={true}
/>
