import { hwLedger } from "https://deno.land/x/polkadot@0.2.45/mod.ts";
const { Ledger } = hwLedger;
Methods
getAddress(): Promise<LedgerAddress>
confirm?,
accountOffset?,
addressOffset?,
unnamed 3?: Partial<AccountOptions>,
Returns the address associated with a specific account & address offset. Optionally asks for on-device confirmation
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>