Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,10 @@
"source": "/404",
"destination": "/404.html"
},
{
"source": "/solutions/wallets/link-wallets/overview",
"destination": "/sdk/web/hooks/useWallets"
},
{
"source": "/solutions/technical-references/chain-support/",
"destination": "https://status.sequence.info"
Expand Down
24 changes: 13 additions & 11 deletions sdk/web/hooks/useWallets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ description: Hook for managing connected wallets
sidebarTitle: useWallets
---

## Features

This hook provides a unified interface for managing connected wallets, both embedded (WaaS) and external wallets. The user is prompted to sign a transaction with their active wallet in order to link wallets enabling read-only functionality.

Key features:
- Get information about all connected wallets
- Set a specific wallet as active
- Disconnect wallets
- View linked wallets for embedded wallets
- Refresh the list of linked wallets

For embedded wallets (Wallet-as-a-Service), the hook automatically fetches linked wallets if available. Linked wallets are additional wallets that have been connected to the primary embedded wallet.

## Import

```tsx
Expand Down Expand Up @@ -137,16 +150,5 @@ Function to disconnect a wallet by its address.

Function to refresh the list of linked wallets. Useful after linking a new wallet.

## Notes

This hook provides a unified interface for managing connected wallets, both embedded (WaaS) and external wallets.

Key features:
- Get information about all connected wallets
- Set a specific wallet as active
- Disconnect wallets
- View linked wallets for embedded wallets
- Refresh the list of linked wallets

For embedded wallets (Wallet-as-a-Service), the hook automatically fetches linked wallets if available. Linked wallets are additional wallets that have been connected to the primary embedded wallet.