Skip to content

Fortmatic

Thiendekaco edited this page Apr 4, 2024 · 2 revisions

@subwallet-connect/fortmatic

Wallet module for connecting Fortmatic to SubConnect

Install

npm i @subwallet-connect/fortmatic

Options

type FortmaticOptions = {
  apiKey: string
}

Usage

import Onboard from '@subwallet-connect/core'
import fortmaticModule from '@subwallet-connect/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)