Skip to main content
You are viewing docs for the previous version of the Wallets SDK. We recommend upgrading to V1. See the updated version of this page or the V1 migration guide.

useWallet()

Returns

wallet
Wallet | undefined
The current wallet instance, or undefined if no wallet is loaded.
status
WalletStatus
Current wallet status. Options: not-loaded | in-progress | loaded | error.
getOrCreateWallet
(args: WalletArgsFor<Chain>) => Promise<Wallet | undefined>
Creates a new wallet or retrieves an existing one.

Usage


Wallet Methods

The wallet instance returned by useWallet() provides methods for token transfers, balances, signing, and more. Since the React SDK wraps the Wallets SDK, see the Wallets SDK Reference for complete documentation. Chain-specific: