@zondax/ledger-arweave
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@zondax/ledger-arweave

License npm version

This package provides a basic client library to communicate with the Arweave 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";
transport = await TransportWebUSB.create();
const app = new ArweaveApp(transport);

the ArweaveApp object will provide

const response = await app.getVersion();

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

Package Sidebar

Install

npm i @zondax/ledger-arweave

Weekly Downloads

6

Version

1.0.0

License

Apache-2.0

Unpacked Size

72.9 kB

Total Files

12

Last publish

Collaborators

  • ftheirs
  • jleni