eos-token-info
v0.1.1
Published
All EOS tokens information.
Downloads
380
Readme
eos-token-info
All EOS tokens information.
How to use
/* eslint-disable import/no-unresolved,no-console */
const { getTokenInfo } = require("eos-token-info");
console.info(getTokenInfo("EIDOS"));
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;
}