forked from blocknative/web3-onboard
-
Notifications
You must be signed in to change notification settings - Fork 0
SubWallet
Thiendekaco edited this page Apr 4, 2024
·
4 revisions
SubConnect and Web3-Onboard is an open-source, framework-agnostic JavaScript library to onboard users to web3 apps.
npm install @subwallet-connect/core @subwallet-connect/subwallet
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)