Package: react-wallet-kit

Overview

Imports a wallet from an encrypted bundle.
  • This function imports a wallet using the provided encrypted bundle and creates accounts based on the provided parameters.
  • If a userId is provided, the wallet will be imported for that specific user; otherwise, it uses the current session’s userId.
  • If an accounts array is provided, those accounts will be created in the imported wallet; otherwise, default Ethereum and Solana accounts will be created.
  • The encrypted bundle MUST be encrypted to
  • Automatically ensures an active session exists before making the request.
  • Optionally allows stamping the request with a specific stamper (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet).

Parameters

params
object
required

Response

A successful response returns the following fields:
returns
string
required
A promise that resolves to the ID of the imported wallet.