Skip to main content

Wallet Connect

The Stellar Wallet Kit also takes care of WalletConnect, this is not enabled by default so you will need to import the module to the kit when you are starting it. You can do that like this:

const kit = new StellarWalletsKit({
selectedWalletId: XBULL_ID,
network: WalletNetwork.PUBLIC,
modules: [
new xBullModule(),
new FreighterModule(),
new AlbedoModule(),
new WalletConnectModule({
url: 'THE_URL OF YOUR SITE',
projectId: 'YOUR PROJECT ID',
method: WalletConnectAllowedMethods.SIGN,
description: `A DESCRIPTION TO SHOW USERS`,
name: 'THE NAME OF YOUR DAPP',
icons: ['A LOGO/ICON TO SHOW TO YOUR USERS'],
network: WalletNetwork.PUBLIC,
}),
],
});

You can import Wallet Connect module and types like this:

import {
WalletConnectAllowedMethods,
WalletConnectModule,
} from '@creit.tech/stellar-wallets-kit/modules/walletconnect.module';

After you've done this, you will be able to continue executing other functions normally