Skip to content
This repository was archived by the owner on Oct 21, 2023. It is now read-only.
/ data Public archive

JSON data files for Elrond network and token configurations.

License

Notifications You must be signed in to change notification settings

erdDEVcode/data

Repository files navigation

elrond-utils

Utilities and data for building with Elrond.

Features:

  • Cross-platform: Node.js, Browser, Web workers and React Native.
  • Small and lightweight.
  • Contains default configuration for Mainnet and Testnet tokens.
  • Typescript definitions.
  • Full documentation

Installation

npm install --save elrond-utils

Usage

All predefined token and network metadata are in tokens.json and networks.json respectively.

This data gets loaded in and exposed via the Data export:

import Data from 'elrond-util'

console.log(JSON.stringify(Data.getToken('xegld'), null, 2))
/*
  {
    "symbol": "XeGLD",
    "name": "Elrond Test eGold",
    "decimals": 18,
    "id": "xegld"
  }
*/

If you are building in Typescript then there are various useful type definitions available.

For a full list and further documentation see https://erddevcode.github.io/utils/.

License

MIT

About

JSON data files for Elrond network and token configurations.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •