1.0.1 • Published 5 years ago

hw-app-xtz v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Ledger Hardware Wallet XTZ JavaScript bindings.

API

Table of Contents

XTZ

Tezos API

Parameters

  • transport Transport<any>
  • scrambleKey string (optional, default "XTZ")

Examples

import LedgerXTZ from "hw-app-xtz";
const xtz = new LedgerXTZ(transport);

getAddress

get Tezos address for a given BIP 32 path.

Parameters
Examples
const result = await xtz.getAddress("44'/1729'/0'/0'");
const { publicKey, address } = result;

Returns Promise<{publicKey: string, address: string}> an object with a publicKey and address

sign

sign a Tezos operation with a given BIP 32 path

Parameters
Examples
const signature = await xtz.signTransaction("44'/1729'/0'/0'", "some bytes");

Returns Promise<string> a signature as hex string

getAppConfiguration

get the version of the Tezos app installed on the hardware device

Examples
const result = await xtz.getAppConfiguration();

{
  "version": "2.0.1"
}

Returns Promise<{version: string}> an object with a version

1.0.1

5 years ago

1.0.0

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

6 years ago