GitHub, Ledger Devs Discord, Developer Portal
Ledger Hardware Wallet Elrond JavaScript bindings.
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.
Elrond API
-
transport
Transport -
scrambleKey
(optional, default"eGLD"
)
import Elrond from "@ledgerhq/hw-app-elrond";
const elrond = new Elrond(transport)
Get Elrond app configuration.
const result = await elrond.getAppConfiguration();
const { contractData, accountIndex, addressIndex, version } = result;
Returns Promise<any> an object with a contractData, accountIndex, addressIndex, version
Get Elrond address for a given BIP 32 path.
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
Set Elrond address for a given BIP 32 path.
const result = await elrond.setAddress("44'/508'/0'/0/0");
result : Buffer;
Returns any an object with a address