@ledgerhq/hw-app-helium v6.33.2
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
transportTransport a transport for sending commands to a devicescrambleKeya 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
pathstring a BIP32 pathdisplayboolean? flag to show displayaccountIndexindex of account address (optional, default0)
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
txnPaymentV2 a PaymentV2 transactionaccountIndexindex of account address (optional, default0)
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
txnTokenBurnV1 a TokenBurnV1 transactionaccountIndexindex of account address (optional, default0)
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
txnStakeValidatorV1 a StakeValidatorV1 transactionaccountIndexindex of account address (optional, default0)
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
txnUnstakeValidatorV1 a UnstakeValidatorV1 transactionaccountIndexindex of account address (optional, default0)
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
txnTransferValidatorStakeV1 a TransferValidatorStakeV1 transactionownerType("old"|"new") whether to sign as the old or new owner in the transferaccountIndexindex of account address (optional, default0)
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
txnSecurityExchangeV1 a SecurityExchangeV1 transactionaccountIndexindex of account address (optional, default0)
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 months ago
6 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
7 months ago
6 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago