Skip to main content
Module

x/polkadot/hw-ledger/index.ts>Ledger

Package publishing for deno.land/x/polkadot
Go to Latest
class Ledger
import { Ledger } from "https://deno.land/x/polkadot@0.2.35/hw-ledger/index.ts";

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

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>