See XDEFI Wallet Developer Docs
npm i @subwallet-connect/xdefi
import Onboard from '@subwallet-connect/core'
import xdefiWalletModule from '@subwallet-connect/xdefi'
// initialize the module with options
const xdefiSdk = xdefiWalletModule()
const onboard = Onboard({
// ... other Onboard options
wallets: [
xdefiSdk
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)