Skip to main content

Overview

useChipiWallet is a convenience hook that simplifies wallet management by combining multiple operations into one:
  • Wallet fetching (replaces useGetWallet)
  • Wallet creation (replaces useCreateWallet)
  • Balance checking (replaces useGetTokenBalance)
Use this hook when you want a streamlined API. Use the individual hooks (useGetWallet, useCreateWallet, useGetTokenBalance) when you need more granular control.

Quick Start

Configuration Options

Return Values

Wallet Data

Balance Data

Create Wallet

Actions

Computed Wallet Properties

The wallet object includes these computed properties:

Example: Full Implementation with Clerk

Wallet Types

When creating a wallet, you can specify the type:

Migration from Individual Hooks

If you’re currently using separate hooks, here’s how to migrate:

Before

After

useChipiWallet automatically handles the dependency chain - it only fetches balance after the wallet is loaded.