Skip to content

Pairing

Pairing = object

Connection state and actions consumed by WalletModal.

Use useProviderPairing() for a Konekt provider or useWagmiPairing() for wagmi instead of building this object by hand.

optional chains?: readonly string[]

CAIP-2 chain IDs known by the binding. The modal’s chains prop overrides them.


connected: boolean

Whether a wallet is currently connected.


connectLocal: (wallet) => void

Connects one of the local wallets.

LocalWallet

void


optional error?: string

Human-readable pairing error to display in the modal.


local: readonly LocalWallet[]

Wallets already available through registered browser connectors.


optional projectId?: string

WalletConnect Cloud project ID the modal uses for Wallet Explorer listings. The pairing hooks read it from the Konekt provider or connector, so the modal never needs it separately.


reset: () => void

Clears connection errors before a new modal flow.

void


start: (onUri) => () => void

Starts WalletConnect pairing and reports its URI. The returned teardown cancels or detaches it.

(uri) => void

() => void