0.15.0 • Published 9 months ago

@onflow/ledger v0.15.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

@onflow/ledger

License npm version

This package provides a basic client library to communicate with the Flow App running in a Ledger Nano S/X

We recommend using the npmjs package in order to receive updates/fixes.

Notes

Use yarn install to avoid issues.

Minimal example

This is very simple. First you need to use one of the transport classes provided by Ledger.

import TransportWebUSB from "@ledgerhq/hw-transport-webusb";
import FlowApp from "@onflow/ledger";

transport = await TransportWebUSB.create();
const app = new FlowApp(transport);

The FlowApp object will provide:

const response = await app.getVersion();

if (response.returnCode !== FlowApp.ERROR_CODE.NoError) {
      console.log(`Error [${response.returnCode}] ${response.errorMessage}`);
} else {
    console.log(response);
}

Acknowledgements

Developed by Zondax GmbH and Vacuumlabs.

0.13.1-beta.0

12 months ago

0.13.1-beta.1

11 months ago

0.13.1-beta.2

11 months ago

0.13.1-beta.3

11 months ago

0.15.0

9 months ago

0.13.1-beta.4

9 months ago

0.12.0-beta.0

1 year ago

0.10.0

3 years ago

0.1.0

5 years ago