Package: react-wallet-kit

Defined in: react-wallet-kit/src/providers/client/Types.tsx:336

Overview

handles the export private key flow.
  • This function opens a modal with the ExportComponent for exporting a private key.
  • Uses Turnkey’s export iframe flow to securely export private key material.
  • The export process encrypts the exported bundle to a target public key, which is generated and managed inside the iframe for maximum security.
  • A request is made to the Turnkey API to export the private key, encrypted to the target public key.
  • The resulting export bundle is injected into the iframe, where it is decrypted and displayed to the user.
  • If a custom iframe URL is used, a target public key can be provided explicitly.
  • Hexadecimal and Solana address formats are supported for wallet account exports - defaulting to Hexadecimal if not specified.
  • Optionally allows specifying the stamper to use for the export (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet) for granular authentication control.
  • The modal-driven UI ensures the user is guided through the export process and can securely retrieve their exported material.

Parameters

params
object
required

Response

A successful response returns the following fields:
returns
void
required
A void promise.