Package: react-wallet-kit

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

Overview

Handles the import wallet flow.
  • This function opens a modal with the ImportComponent for importing a wallet.
  • Supports importing wallets using an encrypted bundle, with optional default accounts or custom account parameters.
  • Allows users to specify default wallet accounts (address formats or account params) to pre-fill the import form.
  • Supports customizing the duration of the success page shown after a successful import.
  • Allows specifying the stamper to use for the import (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet) for granular authentication control.
  • Ensures the imported wallet is added to the user’s wallet list and the provider state is refreshed.

Parameters

params
object

Response

A successful response returns the following fields:
returns
string
required
A promise that resolves to the new wallet’s ID.