Wallet hooks
useConnectWallet
The useConnectWallet
hook is a mutation hook for establishing a connection to a specific wallet.
Example
Connect arguments
-
args
- Arguments passed to theconnect
function of the wallet.wallet
- The wallet to connect to.accountAddress
- (optional) The address in the wallet to connect to.
-
options
- Options passed theuseMutation
hook from @tanstack/react-query.