Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LedgerConnector

Index

Constructors

  • new LedgerConnector(transport: Transport<string>, options?: LedgerConnectorOptions): LedgerConnector

Methods

  • getCosmosAddress(pubkey?: Uint8Array): Promise<string>
  • getCosmosAppVersion(): Promise<string>
  • getPubkey(hdPath?: HdPath): Promise<Uint8Array>
  • getPubkeys(): Promise<readonly Uint8Array[]>
  • Shows the user's address in the device and returns an address/pubkey pair.

    The address will be shown with the native prefix of the app (e.g. cosmos, persistence, desmos) and does not support the usage of other address prefixes.

    Parameters

    • Optional hdPath: HdPath

    Returns Promise<AddressAndPubkey>

  • sign(message: Uint8Array, hdPath?: HdPath): Promise<Uint8Array>
  • Parameters

    • message: Uint8Array
    • Optional hdPath: HdPath

    Returns Promise<Uint8Array>

Generated using TypeDoc