2020-02-01 11:39:21 +03:00
|
|
|
_section: Hardware Wallets
|
|
|
|
|
2020-05-08 10:24:40 +03:00
|
|
|
|
|
|
|
_subsection: LedgerSigner @<hw-ledger> @INHERIT<[[Signer]]> @SRC<hardware-wallets:class.LedgerSigner>
|
2020-02-01 11:39:21 +03:00
|
|
|
|
2020-02-02 15:58:29 +03:00
|
|
|
The [Ledger Hardware Wallets](link-ledger) are a fairly
|
2020-02-01 11:39:21 +03:00
|
|
|
popular brand.
|
|
|
|
|
2020-05-08 10:24:40 +03:00
|
|
|
|
|
|
|
_code: Importing in ES6 or TypeScript @lang<script>
|
|
|
|
|
|
|
|
import { LedgerSigner } from "@ethersproject/hardware-wallets";
|
|
|
|
|
2020-02-01 11:39:21 +03: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.
|