Package: react-wallet-kit

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

Overview

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