@web3-onboard/walletconnect
Wallet module for connecting Ledger hardware wallets to web3-onboard
Install
npm i @web3-onboard/walletconnect
Options
type WalletConnectOptions = {
bridge?: string
qrcodeModalOptions?: {
mobileLinks: string[]
}
connectFirstChainId?: boolean
}
Usage
import Onboard from '@web3-onboard/core'
import walletConnectModule from '@web3-onboard/walletconnect'
const walletConnect = walletConnectModule({
bridge: 'YOUR_CUSTOM_BRIDGE_SERVER',
qrcodeModalOptions: {
mobileLinks: ['rainbow', 'metamask', 'argent', 'trust', 'imtoken', 'pillar']
}
connectFirstChainId: true
})
const onboard = Onboard({
wallets: [
walletConnect
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)