0.1.7 • Published 3 days ago

@ledgerhq/hw-app-vet v0.1.7

Weekly downloads
-
License
-
Repository
github
Last release
3 days ago

GitHub, Ledger Devs Discord, Developer Portal

@ledgerhq/hw-app-vet

Ledger Hardware Wallet ETH JavaScript bindings.


Are you adding Ledger support to your software wallet?

You may be using this package to communicate with the VeChain Nano App.

For a smooth and quick integration:

  • See the developers’ documentation on the Developer Portal and
  • Go on Discord to chat with developer support and the developer community.

API

Table of Contents

Vet

VeChain API

Parameters

  • transport Transport
  • scrambleKey (optional, default "V3T")

Examples

import Vet from "@ledgerhq/hw-app-vet";
const vet = new Vet(transport)

getAddress

get VeChain address for a given BIP 32 path.

Parameters
  • path string a path in BIP 32 format
  • display boolean?
  • chainCode boolean?
  • statusCodes Array\ (optional, default [StatusCodes.OK])
Examples
vet.getAddress("m/44'/818'/0'/0").then(o => o.address)

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

signTransaction

You can sign a transaction and retrieve v, r, s given the raw transaction and the BIP 32 path of the account to sign.

Parameters
  • path string : the BIP32 path to sign the transaction on
  • rawTxHex string : the raw vechain transaction in hexadecimal to sign

Returns Promise[Buffer](https://nodejs.org/api/buffer.html)

0.1.8-nightly.1

3 days ago

0.1.8-nightly.0

15 days ago

0.1.8-next.0

15 days ago

0.1.7-nightly.3

21 days ago

0.1.7-nightly.2

22 days ago

0.1.7

21 days ago

0.1.7-nightly.1

23 days ago

0.1.7-next.0

1 month ago

0.1.7-nightly.0

1 month ago

0.1.6-nightly.3

2 months ago

0.1.6

2 months ago

0.1.6-nightly.2

2 months ago

0.1.6-nightly.1

2 months ago

0.1.6-nightly.0

2 months ago

0.1.6-next.0

2 months ago

0.1.5-hotfix.0

3 months ago

0.1.5

3 months ago

0.1.4-new-wc.0

3 months ago

0.1.4

3 months ago

0.1.4-nightly.2

3 months ago

0.1.4-nightly.1

3 months ago

0.1.4-wc-test.0

3 months ago

0.1.4-next.0

3 months ago

0.1.4-nightly.0

3 months ago

0.1.3

3 months ago

0.1.3-next.0

4 months ago

0.1.2

4 months ago

0.1.2-nightly.1

4 months ago

0.1.2-next.0

4 months ago

0.1.2-nightly.0

4 months ago

0.1.1

4 months ago

0.1.1-nightly.1

4 months ago

0.1.1-next.0

4 months ago

0.1.1-nightly.0

5 months ago

0.1.0

5 months ago

0.1.0-nightly.5

5 months ago

0.1.0-next.0

5 months ago

0.1.0-nightly.4

5 months ago

0.1.0-nightly.3

5 months ago

0.1.0-nightly.2

6 months ago

0.1.0-nightly.1

6 months ago

0.1.0-nightly.0

6 months ago