Skip to content

exportWallet

Initiates the export of a wallet by creating an iframe stamper and calling the appropriate export function. The export can be based on a seed phrase or a private key.

Import

import { AlchemySignerWebClient } from "@account-kit/signer";

Usage

import { AlchemySignerWebClient } from "@account-kit/signer";
 
const client = new AlchemySignerWebClient({
  connection: {
    apiKey: "your-api-key",
  },
  iframeConfig: {
    iframeContainerId: "signer-iframe-container",
  },
});
 
const account = await client.exportWallet({
  iframeContainerId: "export-iframe-container",
});

Parameters

config

ExportWalletParams The parameters for exporting the wallet

config.iframeContainerId

string The ID of the container element that will hold the iframe stamper

config.iframeElementId

string Optional ID for the iframe element

Returns

Promise<void> A promise that resolves when the export process is complete