Package: react-wallet-kit

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

Overview

Handles the export wallet account flow.
  • This function opens a modal with the ExportComponent for exporting a wallet account.
  • Uses Turnkey’s export iframe flow to securely export wallet account 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 wallet account, 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.