0.2.2 • Published 1 year ago

@aeternity/ledger-app-api v0.2.2

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
1 year ago

Deprecated

Ledger HW support maintained in @aeternity/aepp-sdk (see AccountLedger, AccountLedgerFactory).

æternity ledger app api

Build Status npm npm

Overview

This is the API to the æternity ledger app. With this API, you can communicate directly with the æternity ledger app and use embedded features such as requesting an address or signing transaction.

Each call to the API can trigger an UI response to the Ledger app, where the user will be able to validate the request.

Installation & Usage

Install the æternity ledger app api via npm

npm install @aeternity/ledger-app-api

Import the æternity ledger app api and transport u2f

import Ae from "@aeternity/ledger-app-api";
import TransportU2F from "@ledgerhq/hw-transport-u2f";

Here's an example of a api usage:

const transport = await TransportU2F.create();
const ae = new Ae(transport);
let address = await ae.getAddress(0);

Documentation

Full documentation can be found at aeternity.github.io/ledger-app-api