@subwallet-connect/walletlink
v1.0.8
Published
(DEPRECATED. Use @subwallet-connect/coinbase instead) WalletLink SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 provi
Downloads
10
Maintainers
Readme
@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)