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
npm install --save elrond-utils
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/.
MIT