npm i @web3-onboard/fortmatic
type FortmaticOptions = {
apiKey: string
}
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)