Skip to content

@swapped/connect-sdk / core / ConnectWalletRequest

Type Alias: ConnectWalletRequest

ConnectWalletRequest = object

Defined in: src/types/wallets.types.ts:105

Properties

chainId?

optional chainId?: ChainId

Defined in: src/types/wallets.types.ts:112

EVM only: chain to request at connect time.


force?

optional force?: boolean

Defined in: src/types/wallets.types.ts:125

WalletConnect only. Cancel any in-flight pairing before starting a new one.


forcePopup?

optional forcePopup?: boolean

Defined in: src/types/wallets.types.ts:127

Always run this injected call in the Swapped popup.


namespaces?

optional namespaces?: ChainNamespace[]

Defined in: src/types/wallets.types.ts:110

Defaults to the namespaces the session / host supports.


onUri?

optional onUri?: (payload) => void

Defined in: src/types/wallets.types.ts:117

Called when the host emits a WalletConnect pairing URI so the consumer can render a QR (uri) and/or open a mobile deep link (deeplinkUrl).

Parameters

payload
deeplinkUrl

string

provider

IntegrationProvider

uri

string

Returns

void


popupIfUnavailable?

optional popupIfUnavailable?: boolean

Defined in: src/types/wallets.types.ts:132

If the iframe probe did not find this extension, open the popup instead of failing in the iframe.


provider

provider: IntegrationProvider

Defined in: src/types/wallets.types.ts:106


transport?

optional transport?: WalletTransport

Defined in: src/types/wallets.types.ts:108

Defaults to injected when the extension is on this page, else walletconnect.