@ledgerhq/hw-app-elrond
    TypeScript icon, indicating that this package has built-in type declarations

    6.11.2 • Public • Published

    Github, Ledger Devs Slack

    @ledgerhq/hw-app-elrond

    Ledger Hardware Wallet Elrond JavaScript bindings.

    API

    Table of Contents

    getAppConfiguration

    Get Elrond app configuration.

    Examples

    const result = await elrond.getAppConfiguration();
    const { contractData, accountIndex, addressIndex, version } = result;

    Returns Promise<{contractData: (string | number), accountIndex: (string | number), addressIndex: (string | number), version: string}> an object with a contractData, accountIndex, addressIndex, version

    getAddress

    Get Elrond address for a given BIP 32 path.

    Parameters

    • path string a path in BIP 32 format
    • display boolean? optionally enable or not the display

    Examples

    const result = await elrond.getAddress("44'/508'/0'/0'/0'");
    const { address, returnCode } = result;

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

    setAddress

    Set Elrond address for a given BIP 32 path.

    Parameters

    • path string a path in BIP 32 format
    • display boolean? optionally enable or not the display

    Examples

    const result = await elrond.setAddress("44'/508'/0'/0/0");
    result : Buffer;

    Returns any an object with a address

    signTransaction

    Sign Elrond transaction for a given BIP 32 path.

    Parameters

    • path string a path in BIP 32 format
    • message string string with an unsigned transaction
    • usingHash boolean boolean wich indicate if transaction is hash or raw

    Returns Promise<string> a signature for transaction

    getAppConfiguration

    Get Elrond app configuration.

    Examples

    const result = await elrond.getAppConfiguration();
    const { contractData, accountIndex, addressIndex, version } = result;

    Returns Promise<{version: string}> an object with a contractData, accountIndex, addressIndex, version

    Install

    npm i @ledgerhq/hw-app-elrond

    DownloadsWeekly Downloads

    15

    Version

    6.11.2

    License

    Apache-2.0

    Unpacked Size

    55.7 kB

    Total Files

    14

    Last publish

    Collaborators

    • jelbaz-ledger
    • mortalkastor
    • achabrolin-ledger
    • gre
    • btchip
    • meriadec
    • flocks
    • amougel
    • juan-cortes
    • val_pinkman
    • iammorrow
    • phenry-ledger
    • jdecussy-ledger
    • lfbarreto
    • junsugiura
    • hzheng_ledger
    • machard-ledger
    • glethuillier_ledger