@ledgerhq/web3-onboard-ledgerconnect
TypeScript icon, indicating that this package has built-in type declarations

0.9.0 • Public • Published

@ledgerhq/web3-onboard-ledgerconnect

This wallet module for web3-onboard allows you to connect your dapp to the Ledger Connect browser extension.

Install

Add it to your dapp along with web3-onboard with

yarn add @web3-onboard/core
yarn add @ledgerhq/web3-onboard-ledgerconnect

Usage

import Onboard from '@web3-onboard/core'
import ledgerConnectModule from '@ledgerhq/web3-onboard-ledgerconnect'

const ledgerConnect = ledgerConnectModule()

const onboard = Onboard({
  // ... other Onboard options
  wallets: [
    ledgerConnect
    //... other wallets
  ]
})

const connectedWallets = await onboard.connectWallet()
console.log(connectedWallets)

Readme

Keywords

none

Package Sidebar

Install

npm i @ledgerhq/web3-onboard-ledgerconnect

Weekly Downloads

1

Version

0.9.0

License

MIT

Unpacked Size

5.14 kB

Total Files

8

Last publish

Collaborators

  • thomas.coudray
  • ldg-github-ci
  • aboissiere
  • vbouzon
  • gbrahm-ledger
  • sergii-shkolin
  • phenry-ledger