Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 591 Bytes

File metadata and controls

35 lines (25 loc) · 591 Bytes

@web3-onboard/fortmatic

Wallet module for connecting Fortmatic to web3-onboard

Install

npm i @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)