JSPM

@ledgerhq/hw-app-multiversx

6.27.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 595
  • Score
    100M100P100Q84061F
  • License Apache-2.0

Ledger Hardware Wallet MultiversX Application API

Package Exports

  • @ledgerhq/hw-app-multiversx
  • @ledgerhq/hw-app-multiversx/lib-es/MultiversX.js
  • @ledgerhq/hw-app-multiversx/lib/MultiversX.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ledgerhq/hw-app-multiversx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

GitHub, Ledger Devs Discord, Developer Portal

@ledgerhq/hw-app-multiversx

Ledger Hardware Wallet Multiversx JavaScript bindings.


Are you adding Ledger support to your software wallet?

You may be using this package to communicate with the Multiversx 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

MultiversX

MultiversX API

Parameters

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

Examples

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

getAppConfiguration

Get MultiversX app configuration.

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

Returns Promise<any> an object with a contractData, accountIndex, addressIndex, version

getAddress

Get MultiversX 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 multiversx.getAddress("44'/508'/0'/0'/0'");
const { publicKey, address } = result;

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

setAddress

Set MultiversX 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 multiversx.setAddress("44'/508'/0'/0/0");
result : Buffer;

Returns any an object with a address