# @ledgerhq/hw-app-elrond

> Ledger Hardware Wallet Elrond Application API

Latest version **6.21.1** (published 2024-09-27) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @ledgerhq/hw-app-elrond
pnpm add @ledgerhq/hw-app-elrond
yarn add @ledgerhq/hw-app-elrond
bun add @ledgerhq/hw-app-elrond
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 6.21.1 |
| Published | 2024-09-27 |
| First published | 2021-06-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 43 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 616 |
| Maintainers | ledger-releaser, thomas.coudray, ldg-github-ci, aboissiere, vbouzon, gbrahm-ledger, sergii-shkolin, phenry-ledger |
| Keywords | Ledger, LedgerWallet, egld, Elrond, NanoS, Blue, Hardware Wallet |

## Links

- npm: https://www.npmjs.com/package/@ledgerhq/hw-app-elrond
- Repository: https://github.com/LedgerHQ/ledger-live
- Homepage: https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ledgerjs/packages/hw-app-elrond
- Issues: https://github.com/LedgerHQ/ledger-live/issues
- npm.io page: https://npm.io/package/@ledgerhq/hw-app-elrond

## Dependencies (5)

- [bip32-path](https://npm.io/package/bip32-path.md) ^0.4.2
- [protobufjs](https://npm.io/package/protobufjs.md) ^7.2.6
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.0.1
- [@multiversx/sdk-core](https://npm.io/package/@multiversx/sdk-core.md) ^13.3.0
- [@ledgerhq/hw-transport](https://npm.io/package/@ledgerhq/hw-transport.md) ^6.31.4

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 6.21.1 (latest) — 2024-09-27
- 6.21.1-next.0 (next) — 2024-09-23
- 6.21.1-nightly.0 (nightly) — 2024-09-17
- 6.9.1-taproot.0 (taproot) — 2021-10-14
- 6.2.0-bsc.5 (bsc) — 2021-07-19
- 6.20.0 — 2021-12-16
- 6.19.0 — 2021-12-13
- 6.11.2 — 2021-10-28
- 6.11.0 — 2021-10-21
- 6.10.0 — 2021-10-18
- 6.7.0 — 2021-09-16
- 6.3.0 — 2021-08-01
- 6.2.0 — 2021-07-19
- 6.2.0-bsc.4 — 2021-07-19
- 6.2.0-bsc.3 — 2021-07-13
- … 5 more at https://npm.io/package/@ledgerhq/hw-app-elrond/versions

## README

<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

---
_Source: https://npm.io/package/@ledgerhq/hw-app-elrond · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
