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
The current wallet instance, or undefined if no wallet is loaded.
Current wallet status. Options:
not-loaded | in-progress | loaded | error.getWallet
(props: Pick<ClientSideWalletArgsFor<Chain>, "chain" | "alias">) => Promise<Wallet | undefined>
Retrieves an existing wallet. Returns undefined if no wallet is found.
Creates a new wallet with the specified chain and recovery signer.
Creates a device signer using the provider’s key storage. Returns undefined if device signing is not available.
Creates a passkey signer via WebAuthn biometric prompt. EVM only.
Usage
Wallet Methods
Thewallet 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.
| Method | Description |
|---|---|
wallet.addSigner() | Add a signer to the wallet. Always uses the recovery signer internally to approve the registration. If the signer being added is the current operational signer, it will be reassembled with the new locator. Otherwise, the original signer is restored after the operation. |
wallet.balances() | Get the wallet balances - always includes USDC and native token (ETH/SOL) |
wallet.needsRecovery() | Whether the wallet needs recovery (signer registration) before the next transaction. |
wallet.nfts() | Get the wallet NFTs |
wallet.recover() | Register a device signer with the wallet using the recovery signer. Generates a new device key and registers it on-chain. Returns early if the device signer’s locator is already approved on-chain. |
wallet.send() | Send a token to a wallet or user locator |
wallet.signerIsRegistered() | Check if a signer is registered in this wallet. |
wallet.signers() | List the signers for this wallet. Returns full signer objects with status. For EVM wallets, only signers with an approval (pending or completed) for the wallet’s chain are included. |
wallet.stagingFund() | Funds the wallet with Crossmint’s stablecoin (USDXM). Note: This method is only available in staging environments and exclusively supports USDXM tokens. It cannot be used in production environments. |
wallet.transaction() | Get a transaction by id |
wallet.transactions() | Get the wallet transactions |
wallet.transfers() | Get the wallet transfers |
wallet.useSigner() | Set the active signer for this wallet. Accepts a signer config object. The locator is inferred internally. Works for both registered signers and the recovery signer. For passkey signers: if no id is provided, the wallet will auto-select the passkey if exactly one passkey signer is registered. If multiple passkeys exist, an id must be specified. For device signers: if no device key is found locally, the signer will be created automatically during the next transaction (via recovery). For external-wallet signers: the config object must include an onSign callback (applies to both registered and recovery signers). |
EVMWallet—getViemClient(),sendTransaction(),signMessage(),signTypedData()SolanaWallet—sendTransaction()StellarWallet—sendTransaction()

