ethers.js/docs/v5/api/other/hardware/README.md

24 lines
570 B
Markdown
Raw Normal View History

2020-06-10 06:56:58 +03:00
-----
2020-07-03 08:54:56 +03:00
Documentation: [html](https://docs.ethers.io/)
2020-06-10 06:56:58 +03:00
-----
Hardware Wallets
================
LedgerSigner
------------
```
import { LedgerSigner } from "@ethersproject/hardware-wallets";
```
### API
#### **new ****LedgerSigner**( [ provider [ , type [ , path ] ] ] ) => *[LedgerSigner](/v5/api/other/hardware/#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.