Overview

Exports a wallet as an encrypted bundle.
  • This function exports the specified wallet and its accounts as an encrypted bundle, suitable for backup or transfer.
  • The exported bundle contains the wallet’s seed phrase, encrypted to the provided target public key.
  • If a targetPublicKey is provided, the bundle will be encrypted to that public key; otherwise, an error will be thrown.
  • If an organizationId is provided, the wallet will be exported under that sub-organization; otherwise, the current session’s organizationId is used.
  • Optionally allows stamping the request with a specific stamper (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet).
  • The exported bundle can later be imported using the importWallet method.

Package: core

Defined in: core.ts:3184

Parameters

params
object
required

Response

A successful response returns the following fields:
returns
string
required
A promise that resolves to an ExportBundle object containing the encrypted wallet seed phrase and metadata.