Packages
@web3-onboard/fortmatic
Wallet module for connecting Ledger hardware wallets to web3-onboard
Install
- Yarn
- Npm
terminal
yarn add @web3-onboard/fortmatic
terminal
npm install @web3-onboard/fortmatic
Options
type FortmaticOptions = {
apiKey: string
}
Usage
import Onboard from '@web3-onboard/core'
import fortmaticModule from '@web3-onboard/fortmatic'
const fortmatic = fortmaticModule({ apiKey: 'API_KEY' })
const onboard = Onboard({
// ... other Onboard options
wallets: [
fortmatic
//... other wallets
]
})
const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)