@subwallet-connect/walletlink
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@subwallet-connect/walletlink

(Deprecated) Wallet module for connecting WalletLink to web3-onboard

Use @subwallet-connect/coinbase

Install

npm i @subwallet-connect/walletlink

Options

type WalletLinkOptions = {
  darkMode: boolean // default = false
}

Usage

import Onboard from '@subwallet-connect/core'
import walletLinkModule from '@subwallet-connect/walletlink'

// initialize the module with options
const walletLink = walletLinkModule({ darkMode: true })

// can also initialize with no options...
// const walletLink = walletLinkModule()

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

const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)

Package Sidebar

Install

npm i @subwallet-connect/walletlink

Weekly Downloads

54

Version

1.0.4

License

MIT

Unpacked Size

6.08 kB

Total Files

6

Last publish

Collaborators

  • anhmtv