Skip to main content
Universal Provider is a multi-chain provider for WalletConnect v2 protocol.
Find more about different supported chains here.

Installation

Usage

Events

Provider Methods

Chain switching

DefaultChain is the current chain that the provider will target for the next requested transaction.

Session data

Once a wallet is connected you can find the session data in the provider.session object. The session object includes the following properties, among others:
  • namespaces: session.namespaces is an object that contains the approved session data.
Note that the chains object is an optional parameter and may be undefined. Therefore, we encourage apps to obtain the approved chains from the session.accounts object instead.
  • requiredNamespaces, optionalNamespaces & sessionProperties: These objects contain the namespaces and properties proposed for the session.
  • peer: The session.peer.metadata object contains the metadata of the connected wallet.
Find the complete type definition of the session object here.