0.0.1 • Published 6 years ago
eos-token-list v0.0.1
eos-token-list
List of all EOS tokens.
How to use
/* eslint-disable import/no-unresolved,no-console */
const getTokenInfo = require('eos-token-list').getTokenInfo;
(async () => {
const result = await getTokenInfo('EIDOS');
console.info(result);
})();
API Manual
There is only one API in this library:
/**
* Get the symbol info.
*
* @param symbol The currency symbol, e.g., EIDOS, DICE, KEY, etc.
* @returns TokenInfo
*/
export function getTokenInfo(symbol: string): TokenInfo;
Which returns an TokenInfo
:
export interface TokenInfo {
symbol: string;
contract: string;
decimals: number;
issuer: string;
maximum_supply: number;
}
Update tokens.json
Use the following command to generate tokens.json
:
ts-node --files src/cli.ts
0.0.1
6 years ago