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


useWalletEmailSigner()

Hook for managing email-based signer authentication flows. Provides OTP send/verify functions for wallets using an email signer. Must be used within a CrossmintWalletProvider.

Returns

needsAuth
boolean
Whether the email signer currently requires authentication (OTP verification).
sendEmailWithOtp
() => Promise<void>
Sends a one-time password to the user’s email address.
verifyOtp
(otp: string) => Promise<void>
Verifies the one-time password entered by the user.
reject
(error: Error) => void
Rejects the current authentication request with an error.

Usage


Wallet Methods

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