import { Ledger } from "https://deno.land/x/polkadot@0.2.45/hw-ledger/index.ts";
Constructors
new
Ledger(transport: TransportType, chain: Chain)Methods
getAddress(): Promise<LedgerAddress>
Returns the address associated with a specific account & address offset. Optionally asks for on-device confirmation
getVersion(): Promise<LedgerVersion>
Returns the version of the Ledger application on the device
sign(): Promise<LedgerSignature>
message: Uint8Array,
accountOffset?: number,
addressOffset?: number,
options?: Partial<AccountOptions>,
Signs a transaction on the Ledger device
signRaw(): Promise<LedgerSignature>
message: Uint8Array,
accountOffset?: number,
addressOffset?: number,
options?: Partial<AccountOptions>,
Signs a message (non-transactional) on the Ledger device
withApp<T>(fn: (app: SubstrateApp) => Promise<T>): Promise<T>