Wallet hooks
useSwitchAccount
The useSwitchAccount
hook is a mutation hook for establishing a connection to a specific wallet.
Example
Arguments
-
args
- Arguments passed to theconnect
function of the wallet.account
- The account to switch to.
-
options
- Options passed theuseMutation
hook from @tanstack/react-query.