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

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

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