eos-token-info
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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;
}

References

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i eos-token-info

      Weekly Downloads

      92

      Version

      0.1.1

      License

      Apache-2.0

      Unpacked Size

      36.3 kB

      Total Files

      7

      Last publish

      Collaborators

      • soulmachine