Connecting to Phantom wallets with React SDK
useConnect
hook to establish connections with Phantom wallets, supporting both browser extension and embedded wallet types.
connect()
method returns:
useAccounts
hook to check if a wallet is already connected: