eos-token-info
Version:
All EOS tokens information.
43 lines (31 loc) • 803 B
Markdown
All EOS tokens information.
```javascript
/* eslint-disable import/no-unresolved,no-console */
const { getTokenInfo } = require("eos-token-info");
console.info(getTokenInfo("EIDOS"));
```
There is only one API in this library:
```typescript
/**
* 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`:
```typescript
export interface TokenInfo {
symbol: string;
contract: string;
decimals: number;
issuer: string;
maximum_supply: number;
}
```
- [use getTableRows to get list of all tokens on EOS · Issue