saepenatus
Version:
Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, mul
41 lines (29 loc) • 808 B
Markdown
# @web3-onboard/walletlink
## (Deprecated) Wallet module for connecting WalletLink to web3-onboard
_Use [@web3-onboard/coinbase](../coinbase/README.md)_
### Install
`npm i @web3-onboard/walletlink`
## Options
```typescript
type WalletLinkOptions = {
darkMode: boolean // default = false
}
```
## Usage
```typescript
import Onboard from '@web3-onboard/core'
import walletLinkModule from '@web3-onboard/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)
```