Class: LedgerSigner111<Transport>
Signer for accounts using a Ledger Nano S+/X signature (Starknet Ledger APP version 1.1.1)
The Ledger has to be connected, unlocked and the Starknet APP has to be selected prior of use of this class.
Type parameters​
| Name | Type |
|---|---|
Transport | extends Record<any, any> = any |
Hierarchy​
-
LedgerSigner111↳
LedgerSigner221
Implements​
Constructors​
constructor​
• new LedgerSigner111<Transport>(transport, accountID, eip2645application?, pathFunction?): LedgerSigner111<Transport>
constructor of the LedgerSigner class.
Type parameters​
| Name | Type |
|---|---|
Transport | extends Record<any, any> = any |
Parameters​
| Name | Type | Default value | Description |
|---|---|---|---|
transport | Transport | undefined | 5 transports are available to handle USB, bluetooth, Node, Web, Mobile. See Guides for more details. |
accountID | number | undefined | ID of Ledger Nano (can handle 2**31 accounts). |
eip2645application? | string | 'LedgerW' | A wallet is defined by an ERC2645 derivation path (6 items), and one item is the application and can be customized. Default value is LedgerW. |
pathFunction? | LedgerPathCalculation | getLedgerPathBuffer111 | defines the function that will calculate the path. By default getLedgerPathBuffer111 is selected. |
Returns​
LedgerSigner111<Transport>
Example
import TransportNodeHid from '@ledgerhq/hw-transport-node-hid';
const myNodeTransport = await TransportNodeHid.create();
const myLedgerSigner = new LedgerSigner111(myNodeTransport, 0);
Defined in​
src/signer/ledgerSigner111.ts:80
Properties​
transporter​
• Readonly transporter: Transport