Appearance
@swapped/connect-sdk / react / UseWalletResult
Type Alias: UseWalletResult
UseWalletResult =
object
Defined in: src/react/wallets/hooks/useWallet.ts:17
Properties
cancelPairing
cancelPairing: () =>
Promise<boolean>
Defined in: src/react/wallets/hooks/useWallet.ts:37
Returns
Promise<boolean>
connect
connect: (
request?) =>Promise<WalletConnection|null>
Defined in: src/react/wallets/hooks/useWallet.ts:27
Parameters
request?
Returns
Promise<WalletConnection | null>
connections
connections:
WalletConnection[]
Defined in: src/react/wallets/hooks/useWallet.ts:22
Connected instances of this provider.
disconnect
disconnect: (
walletId?) =>Promise<void>
Defined in: src/react/wallets/hooks/useWallet.ts:32
Disconnect this provider. Pass walletId to drop one instance; omit it to disconnect every instance.
Parameters
walletId?
Returns
Promise<void>
error
error:
string|null
Defined in: src/react/wallets/hooks/useWallet.ts:26
Last error for this provider, or null.
getDeepLinkUrl
getDeepLinkUrl: () =>
string|null
Defined in: src/react/wallets/hooks/useWallet.ts:35
Returns
string | null
isConnected
isConnected:
boolean
Defined in: src/react/wallets/hooks/useWallet.ts:23
isConnecting
isConnecting:
boolean
Defined in: src/react/wallets/hooks/useWallet.ts:24
openDeepLink
openDeepLink: () =>
string|null
Defined in: src/react/wallets/hooks/useWallet.ts:36
Returns
string | null
pairingDeeplinkUrl
pairingDeeplinkUrl:
string|null
Defined in: src/react/wallets/hooks/useWallet.ts:41
Current WalletConnect mobile deep link while this provider is pairing, or null.
pairingUri
pairingUri:
string|null
Defined in: src/react/wallets/hooks/useWallet.ts:39
Current WalletConnect URI while this provider is pairing, or null.
provider
provider:
IntegrationProvider
Defined in: src/react/wallets/hooks/useWallet.ts:18
requiresDeepLink
requiresDeepLink:
boolean
Defined in: src/react/wallets/hooks/useWallet.ts:33
supportsWalletConnect
supportsWalletConnect:
boolean
Defined in: src/react/wallets/hooks/useWallet.ts:34
wallet
wallet:
AvailableWallet|null
Defined in: src/react/wallets/hooks/useWallet.ts:20
Availability for this provider, or null if it is not in the wallet list.