2020-02-01 03:39:21 -05:00
|
|
|
_section: Hardware Wallets
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
|
|
|
|
_subsection: LedgerSigner @<hw-ledger> @INHERIT<[[Signer]]> @SRC<hardware-wallets:class.LedgerSigner>
|
2020-02-01 03:39:21 -05:00
|
|
|
|
2020-02-02 07:58:29 -05:00
|
|
|
The [Ledger Hardware Wallets](link-ledger) are a fairly
|
2020-02-01 03:39:21 -05:00
|
|
|
popular brand.
|
|
|
|
|
2020-05-08 03:24:40 -04:00
|
|
|
|
|
|
|
_code: Importing in ES6 or TypeScript @lang<script>
|
|
|
|
|
|
|
|
import { LedgerSigner } from "@ethersproject/hardware-wallets";
|
|
|
|
|
2020-02-01 03:39:21 -05:00
|
|
|
|
|
|
|
_heading: API
|
|
|
|
|
|
|
|
_property: new LedgerSigner([provider [, type [ , path ] ] ]) => [[hw-ledger]]
|
|
|
|
Connects to a Ledger Hardware Wallet. The //type// if left unspecified is
|
|
|
|
determined by the environment; in node the default is "hid" and in the browser
|
|
|
|
"u2f" is the default. The default Ethereum path is used if //path// is left unspecified.
|