Appearance
@swapped/connect-sdk / react / UseActiveWalletResult
Type Alias: UseActiveWalletResult
UseActiveWalletResult =
object
Defined in: src/react/wallets/hooks/useActiveWallet.ts:5
Properties
activeWallet
activeWallet:
WalletConnection|null
Defined in: src/react/wallets/hooks/useActiveWallet.ts:9
Active connection, or null when none are connected.
activeWalletId
activeWalletId:
WalletId|null
Defined in: src/react/wallets/hooks/useActiveWallet.ts:7
Active connection instance id, or null when none are connected.
setActiveWallet
setActiveWallet: (
walletId) =>void
Defined in: src/react/wallets/hooks/useActiveWallet.ts:11
Set the active wallet. No-op when walletId is not connected.
Parameters
walletId
Returns
void