Token info

getTokenInfo()

Get token information by providing either CoinGecko, CoinMarketCap or Defillama slug

Signature

getTokenInfo(slug: {
  coinGeckoSlug: string;
  coinMarketCapSlug: string;
  defiLlamaSlug: string;
}): {
  id: string;
  name: string;
  slug: string;
  symbol: string;
  image: string;
  max_supply: number;
  total_supply: number;
  circulating_supply: number;
  market_cap: number;
  current_price: number;
  price_change_percentage_1h: number;
  price_change_percentage_24h: number;
  price_change_percentage_7d: number;
  price_change_percentage_30d: number;
  total_volume: number;
  last_updated: Date;
}

Example

const tokenInfo = getTokenInfo({ coinGeckoSlug: "" })
/*
*/

Last updated