npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ledgerhq/hw-app-helium

v6.31.4

Published

Ledger Hardware Wallet Helium Application API

Downloads

349

Readme

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