Skip to main content
This page has been updated for Wallets SDK V1. If you are using the previous version, see the previous version of this page or the V1 migration guide.

useWallet()

Returns

(address: string) => Promise<DeviceSignerConfig> | undefined
Creates a Device Signer
(passkeyName: string) => Promise<RegisterSignerPasskeyParams>
Creates a Passkey Signer
(props: ClientSideWalletCreateArgs<C>) => Promise<Wallet | undefined>
Creates a new wallet.
WalletContextError | null
Detail about the last failure, or null when there is no error.
(props: Pick<ClientSideWalletArgsFor<C>, "chain" | "alias">) => Promise<Wallet | undefined>
Retrieves an existing wallet.
"not-loaded" | "in-progress" | "loaded" | "error"
Current wallet status.
Wallet<Chain> | undefined
The current wallet instance, or undefined if no wallet is loaded.

Usage


useWalletOtpSigner()

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

Returns

boolean
Whether the OTP signer currently requires authentication (OTP verification).
(error: Error) => void
Rejects the current authentication request with an error.
() => Promise<void>
Sends a one-time password to the user (via email or phone, depending on the signer type).
(otp: string) => Promise<void>
Verifies the one-time password entered by the user.

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:
  • EVMWalletgetViemClient(), sendTransaction(), signMessage(), signTypedData()
  • SolanaWalletsendTransaction()
  • StellarWalletmigrate(), sendTransaction(), upgrade()