Shared Core Instance
The following content are only available for JavaScript.
WalletConnect’s SDKs are designed to share common logic and resources via the @walletconnect/core
package.
If you intend to leverage multiple SDKs together (e.g. Sign + Auth), it is highly recommended to instantiate
a single Core
instance and pass it to the relevant SDKs. This avoids each SDK creating its own Core
instance,
and thus duplicating computation, memory allocation, event listeners etc.
In the following example, we first instantiate a Core
instance, and then proceed to instantiate both the Sign
and Auth SDK with this shared Core
:
Was this page helpful?