Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@ledgerhq/hw-app-elrond

Package Overview
Dependencies
Maintainers
8
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-app-elrond

Ledger Hardware Wallet Elrond Application API

latest
Source
npmnpm
Version
6.21.1
Version published
Maintainers
8
Created
Source

GitHub, Ledger Devs Discord, Developer Portal

@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 and
  • Go on Discord to chat with developer support and the developer community.

API

Table of Contents

Elrond

Elrond API

Parameters

  • transport Transport
  • scrambleKey (optional, default "eGLD")

Examples

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

getAppConfiguration

Get Elrond app configuration.

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

Returns Promise<any> 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
  • boolDisplay boolean? optionally enable or not the display
Examples
const result = await elrond.getAddress("44'/508'/0'/0'/0'");
const { publicKey, address } = result;

Returns Promise<{publicKey: string, 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

Keywords

Ledger

FAQs

Package last updated on 27 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts