Skip to content

SubWallet

Thiendekaco edited this page Apr 4, 2024 · 4 revisions

@subwallet-connect/subwallet

SubConnect and Web3-Onboard is an open-source, framework-agnostic JavaScript library to onboard users to web3 apps.

Install

npm install @subwallet-connect/core @subwallet-connect/subwallet

Usage

import Onboard from '@subwallet-connect/core'
import SubWalletModule from '@subwallet-connect/subwallet'

// initialize the module
const subWallet= SubWalletModule()

const onboard = Onboard({
  // ... other Onboard options
  wallets: [
    subWallet,
    //... other wallets
  ]
})

const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)
Clone this wiki locally