import { Ledger } from "https://dotland.deno.dev/x/polkadot@0.2.45/hw-ledger/bundle.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
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>