6.30.6 • Published 16 days ago

@ledgerhq/hw-app-helium v6.30.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
16 days ago

GitHub, Ledger Devs Discord, Developer Portal

@ledgerhq/hw-app-helium

Ledger Hardware Wallet Helium JavaScript bindings.


Are you adding Ledger support to your software wallet?

You may be using this package to communicate with the Helium 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

Helium

Helium API

Parameters

  • transport Transport a transport for sending commands to a device
  • scrambleKey a scramble key (optional, default "helium_default_scramble_key")

Examples

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

getVersion

Get application version.

Examples
helium.getVersion().then(r => r.version)

Returns Promise<{version: string}> version object

getAddress

Get Helium address (public key) for a BIP32 path.

Parameters
  • path string a BIP32 path
  • display boolean? flag to show display
  • accountIndex index of account address (optional, default 0)
Examples
helium.getAddress("44'/904'/0'/0'/0'").then(r => r.address)

Returns Promise<{index: number, address: string, publicKey: string}> an object with the address field

signPaymentV2

Sign a Helium PaymentV2 transaction.

Parameters
  • txn PaymentV2 a PaymentV2 transaction
  • accountIndex index of account address (optional, default 0)
Examples
import { PaymentV2 } from '@helium/transactions'
const txn = new PaymentV2({ ... })
helium.signTransaction(txn).then(r => r.signature)

Returns Promise<{signature: Buffer, txn: PaymentV2}> an object with the signed transaction and signature

signTokenBurnV1

Sign a Helium TokenBurnV1 transaction.

Parameters
  • txn TokenBurnV1 a TokenBurnV1 transaction
  • accountIndex index of account address (optional, default 0)
Examples
import { TokenBurnV1 } from '@helium/transactions'
const txn = new TokenBurnV1({ ... })
helium.signTransaction(txn).then(r => r.signature)

Returns Promise<{signature: Buffer, txn: TokenBurnV1}> an object with the signed transaction and signature

signStakeValidatorV1

Sign a Helium StakeValidatorV1 transaction.

Parameters
  • txn StakeValidatorV1 a StakeValidatorV1 transaction
  • accountIndex index of account address (optional, default 0)
Examples
import { StakeValidatorV1 } from '@helium/transactions'
const txn = new StakeValidatorV1({ ... })
helium.signTransaction(txn).then(r => r.signature)

Returns Promise<{signature: Buffer, txn: StakeValidatorV1}> an object with the signed transaction and signature

signUnstakeValidatorV1

Sign a Helium UnstakeValidatorV1 transaction.

Parameters
  • txn UnstakeValidatorV1 a UnstakeValidatorV1 transaction
  • accountIndex index of account address (optional, default 0)
Examples
import { UnstakeValidatorV1 } from '@helium/transactions'
const txn = new UnstakeValidatorV1({ ... })
helium.signTransaction(txn).then(r => r.signature)

Returns Promise<{signature: Buffer, txn: UnstakeValidatorV1}> an object with the signed transaction and signature

signTransferValidatorStakeV1

Sign a Helium TransferValidatorStakeV1 transaction.

Parameters
  • txn TransferValidatorStakeV1 a TransferValidatorStakeV1 transaction
  • ownerType ("old" | "new") whether to sign as the old or new owner in the transfer
  • accountIndex index of account address (optional, default 0)
Examples
import { TransferValidatorStakeV1 } from '@helium/transactions'
const txn = new TransferValidatorStakeV1({ ... }, 'old')
helium.signTransaction(txn).then(r => r.signature)

Returns Promise<{signature: Buffer, txn: TransferValidatorStakeV1}> an object with the signed transaction and signature

signSecurityExchangeV1

Sign a Helium SecurityExchangeV1 transaction.

Parameters
  • txn SecurityExchangeV1 a SecurityExchangeV1 transaction
  • accountIndex index of account address (optional, default 0)
Examples
import { SecurityExchangeV1 } from '@helium/transactions'
const txn = new SecurityExchangeV1({ ... })
helium.signTransaction(txn).then(r => r.signature)

Returns Promise<{signature: Buffer, txn: SecurityExchangeV1}> an object with the signed transaction and signature

6.30.6

16 days ago

6.30.6-next.0

1 month ago

6.30.6-nightly.0

1 month ago

6.30.5

2 months ago

6.30.5-nightly.1

2 months ago

6.30.5-nightly.0

2 months ago

6.30.5-next.0

2 months ago

6.30.4-new-wc.0

2 months ago

6.30.4

2 months ago

6.30.4-wc-test.0

3 months ago

6.30.4-next.0

3 months ago

6.30.4-nightly.0

3 months ago

6.30.3

3 months ago

6.30.3-next.0

3 months ago

6.30.2

3 months ago

6.30.2-nightly.1

4 months ago

6.30.2-next.0

4 months ago

6.30.2-nightly.0

5 months ago

6.30.1

5 months ago

6.30.1-next.0

5 months ago

6.29.13-next.0

9 months ago

6.29.12-next.0

10 months ago

6.29.15-nightly.3

6 months ago

6.29.12-nightly.0

10 months ago

6.30.1-nightly.0

5 months ago

6.29.15-nightly.0

8 months ago

6.29.15-nightly.1

7 months ago

6.29.15-nightly.2

6 months ago

6.30.0-next.0

6 months ago

6.29.13

9 months ago

6.29.12

10 months ago

6.29.15

6 months ago

6.29.14

9 months ago

6.29.13-nightly.0

10 months ago

6.29.13-nightly.2

9 months ago

6.29.13-nightly.1

9 months ago

6.30.0-nightly.3

5 months ago

6.30.0-nightly.2

6 months ago

6.29.16-nightly.1

6 months ago

6.29.16-nightly.0

6 months ago

6.29.15-next.0

6 months ago

6.29.14-next.0

9 months ago

6.30.0

5 months ago

6.29.15-tag-word.0

6 months ago

6.29.9-next.0

1 year ago

6.29.11-next.0

11 months ago

6.29.10-next.0

12 months ago

6.29.11-notarizer.0

11 months ago

6.29.9

12 months ago

6.29.11-nightly.0

11 months ago

6.29.10-nightly.0

12 months ago

6.29.11

11 months ago

6.29.10

11 months ago

6.29.8

1 year ago

6.29.8-next.0

1 year ago

6.29.7-next.0

1 year ago

6.29.7

1 year ago

6.29.6

1 year ago

6.29.6-next.0

1 year ago

6.29.5-next.0

1 year ago

6.29.3-next.0

1 year ago

6.29.2

1 year ago

6.29.5

1 year ago

6.29.3

1 year ago

6.29.4

1 year ago

6.29.2-next.0

1 year ago

6.29.4-next.0

1 year ago

6.29.2-nightly.0

2 years ago

6.29.1-next.0

2 years ago

6.29.2-ts-llm.0

2 years ago

6.29.1

2 years ago

6.29.0

2 years ago

6.28.4-nightly.1

2 years ago

6.28.4-nightly.0

2 years ago

6.28.3-nightly.0

2 years ago

6.28.3-next.0

2 years ago

6.29.0-next.0

2 years ago

6.28.4-nightly.2

2 years ago

6.28.2

2 years ago

6.28.3

2 years ago

6.29.0-nightly.1

2 years ago

6.28.1-yolo.0

2 years ago

6.28.0-nightly.0

2 years ago

6.28.2-next.0

2 years ago

6.28.0-next.0

2 years ago

6.28.0

2 years ago

6.28.1

2 years ago

6.28.1-next.0

2 years ago

6.28.2-nightly.0

2 years ago

6.28.1-nightly.0

2 years ago

6.27.2-nightly.0

2 years ago

6.27.0

2 years ago

6.27.1

2 years ago

6.27.1-fts.6

2 years ago

6.26.0

2 years ago

6.25.1-alpha.3

2 years ago

6.24.1

2 years ago

6.24.0

2 years ago