Skip to content

@swapped/connect-sdk / react / UseConnectWalletResult

Type Alias: UseConnectWalletResult ​

UseConnectWalletResult = object

Defined in: src/react/wallets/hooks/useConnectWallet.ts:12

Properties ​

cancelPairing ​

cancelPairing: () => Promise<boolean>

Defined in: src/react/wallets/hooks/useConnectWallet.ts:18

Returns ​

Promise<boolean>


connect ​

connect: (request) => Promise<WalletConnection | null>

Defined in: src/react/wallets/hooks/useConnectWallet.ts:13

Parameters ​

request ​

ConnectWalletRequest

Returns ​

Promise<WalletConnection | null>


disconnect ​

disconnect: (walletId) => Promise<void>

Defined in: src/react/wallets/hooks/useConnectWallet.ts:19

Parameters ​

walletId ​

WalletId

Returns ​

Promise<void>


disconnectAll ​

disconnectAll: () => Promise<void>

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

Returns ​

Promise<void>


disconnectProvider ​

disconnectProvider: (provider) => Promise<void>

Defined in: src/react/wallets/hooks/useConnectWallet.ts:20

Parameters ​

provider ​

IntegrationProvider

Returns ​

Promise<void>


errors ​

errors: Record<string, string | null>

Defined in: src/react/wallets/hooks/useConnectWallet.ts:25


getDeepLinkUrl ​

getDeepLinkUrl: (provider) => string | null

Defined in: src/react/wallets/hooks/useConnectWallet.ts:16

Parameters ​

provider ​

IntegrationProvider

Returns ​

string | null


isConnecting ​

isConnecting: (provider?) => boolean

Defined in: src/react/wallets/hooks/useConnectWallet.ts:22

Parameters ​

provider? ​

IntegrationProvider

Returns ​

boolean


openDeepLink: (provider) => string | null

Defined in: src/react/wallets/hooks/useConnectWallet.ts:17

Parameters ​

provider ​

IntegrationProvider

Returns ​

string | null


pairingDeeplinkUrl ​

pairingDeeplinkUrl: string | null

Defined in: src/react/wallets/hooks/useConnectWallet.ts:24


pairingUri ​

pairingUri: string | null

Defined in: src/react/wallets/hooks/useConnectWallet.ts:23


requiresDeepLink: (provider) => boolean

Defined in: src/react/wallets/hooks/useConnectWallet.ts:14

Parameters ​

provider ​

IntegrationProvider

Returns ​

boolean


supportsWalletConnect ​

supportsWalletConnect: (provider) => boolean

Defined in: src/react/wallets/hooks/useConnectWallet.ts:15

Parameters ​

provider ​

IntegrationProvider

Returns ​

boolean