Skip to main content
You’re viewing the 2.0 (LTS) docs. View the current 3.0 version of this page.
The useCreateWallet hook provides functionality to create new blockchain wallets for the authenticated user.

Import

Usage

Parameters for createWallet/createWalletAsync

The mutation functions accept a CreateWalletParams object with the following structure:

Response Structure

When successful, the mutation returns a CreateWalletResponse object:

Example: Conditional Wallet Creation

Events

The wallet creation process triggers a WalletCreatedEvent that can be listened to via the ParaProvider callbacks:

Notes

  • This hook requires the user to be authenticated before creating wallets
  • The hook automatically invalidates account queries on success to refresh wallet lists
  • Multiple wallets can be created in a single mutation by passing multiple specifications
  • Each wallet type (EVM, SOLANA, COSMOS) can only be created once per user