Package: react-wallet-kit

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

Overview

Handles the import private key flow.
  • This function opens a modal with the ImportComponent for importing a private key.
  • Supports importing private keys using an encrypted bundle.
  • Address formats (v1AddressFormat[]) and curve (v1Curve) must be specified based on the type of private key the user will import.
  • 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 private key 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 private key’s ID.