Skip to main content
Module

x/polkadot/mod.ts>hwLedger.Ledger

Package publishing for deno.land/x/polkadot
Go to Latest
class hwLedger.Ledger
import { hwLedger } from "https://deno.land/x/polkadot@0.2.33/mod.ts";
const { Ledger } = hwLedger;

Constructors

new
Ledger(transport: TransportType, chain: Chain)

Methods

getAddress(
confirm?,
accountOffset?,
addressOffset?,
unnamed 3?: Partial<AccountOptions>,
): 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(
message: Uint8Array,
accountOffset?,
addressOffset?,
unnamed 3?: Partial<AccountOptions>,
): Promise<LedgerSignature>

Signs a transcation on the Ledger device

withApp<T>(fn: (app: SubstrateApp) => Promise<T>): Promise<T>