Wallets
Ledger
Wallet module for connecting Ledger hardware wallets to web3-onboard
Install
- Yarn
- Npm
terminal
yarn add @web3-onboard/core @web3-onboard/ledger
terminal
npm install @web3-onboard/core @web3-onboard/ledger
Options
interface LedgerOptions { chainId?: number bridge?: string infuraId?: string rpc?: { [chainId: number]: string } }
Usage
import Onboard from '@web3-onboard/core' import ledgerModule from '@web3-onboard/ledger' const ledger = ledgerModule() const onboard = Onboard({ // ... other Onboard options wallets: [ ledger //... other wallets ] }) const connectedWallets = await onboard.connectWallet() console.log(connectedWallets)
Build Environments
For build env configurations and setups please see the Build Env section here