@bitcoinerlab/descriptors - v2.3.4
    Preparing search index...

    Function assertLedgerApp

    • Verifies if the Ledger device is connected, if the required Bitcoin App is opened, and if the version of the app meets the minimum requirements.

      Parameters

      • __namedParameters: { transport: any; name: string; minVersion: string }
        • transport: any

          Connection transport with the Ledger device. One of these: https://github.com/LedgerHQ/ledger-live#libs---libraries

        • name: string

          The name of the Bitcoin App. "Bitcoin" for mainnet or "Bitcoin Test" for testnet.

        • minVersion: string

          The minimum acceptable version of the Bitcoin App in semver format (major.minor.patch).

      Returns Promise<void>

      Promise - A promise that resolves if all assertions pass, or throws otherwise.

      Will throw an error if the Ledger device is not connected, the required Bitcoin App is not opened, or if the version is below the required number.