Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Latest commit

 

History

History
23 lines (15 loc) · 559 Bytes

File metadata and controls

23 lines (15 loc) · 559 Bytes

Ledger Signer

Ledger device-based signer instance

new LedgerSigner

Creates a new instance of the Ledger device signer, using the provided LedgerConnector

Parameters

  • connector LedgerConnector the Ledger connector
  • accountIndex number the desired account index
  • addressPrefix string the address prefix

Usage

const accountIndex: number = 10 // for ex. 10th account in the derivation
const connector: LedgerConnector = // ...

new LedgerSigner(connector, accountIndex);
// new Ledger device signer created