npm package: @ledgerhq/hw-app-elrond
Description: Ledger Hardware Wallet Elrond Application API
Latest version: 6.21.1

<img src="https://user-images.githubusercontent.com/4631227/191834116-59cf590e-25cc-4956-ae5c-812ea464f324.png" height="100" />

[GitHub](https://github.com/LedgerHQ/ledger-live/),
[Ledger Devs Discord](https://developers.ledger.com/discord-pro),
[Developer Portal](https://developers.ledger.com/)

## @ledgerhq/hw-app-elrond

Ledger Hardware Wallet Elrond JavaScript bindings.

***

## Are you adding Ledger support to your software wallet?

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

For a smooth and quick integration:

*   See the developers’ documentation on the [Developer Portal](https://developers.ledger.com/docs/transport/overview/) and
*   Go on [Discord](https://developers.ledger.com/discord-pro/) to chat with developer support and the developer community.

***

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

*   [Elrond](#elrond)
    *   [Parameters](#parameters)
    *   [Examples](#examples)
    *   [getAppConfiguration](#getappconfiguration)
        *   [Examples](#examples-1)
    *   [getAddress](#getaddress)
        *   [Parameters](#parameters-1)
        *   [Examples](#examples-2)
    *   [setAddress](#setaddress)
        *   [Parameters](#parameters-2)
        *   [Examples](#examples-3)

### Elrond

Elrond API

#### Parameters

*   `transport` **Transport**&#x20;
*   `scrambleKey`   (optional, default `"eGLD"`)

#### Examples

```javascript
import Elrond from "@ledgerhq/hw-app-elrond";
const elrond = new Elrond(transport)
```

#### getAppConfiguration

Get Elrond app configuration.

##### Examples

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

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<any>** an object with a contractData, accountIndex, addressIndex, version

#### getAddress

Get Elrond address for a given BIP 32 path.

##### Parameters

*   `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a path in BIP 32 format
*   `boolDisplay` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** optionally enable or not the display

##### Examples

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

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{publicKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), address: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** an object with a address

#### setAddress

Set Elrond address for a given BIP 32 path.

##### Parameters

*   `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a path in BIP 32 format
*   `display` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** optionally enable or not the display

##### Examples

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

Returns **any** an object with a address