Skip to content

@swapped/connect-sdk / react / useActiveWallet

Function: useActiveWallet()

useActiveWallet(): UseActiveWalletResult

Defined in: src/react/wallets/hooks/useActiveWallet.ts:21

Active wallet from WalletsProvider. Persisted in localStorage across page refresh. Auto-selects the newest connection after restore / disconnect when the stored id is gone.

Returns

UseActiveWalletResult