UNPKG

dexscreener-sdk

Version:

A TypeScript wrapper for the DEX Screener API, providing easy access to token profiles, boosts, orders, pairs, and more.

22 lines (21 loc) 695 B
import { BaseModel } from './BaseModel.js'; /** * TokenProfile represents the metadata of a token. */ export class TokenProfile extends BaseModel { /** * Creates an instance of TokenProfile. * @param data Partial data to initialize the token profile. */ constructor(data) { super(data); this.url = data.url || ''; this.chainId = data.chainId || ''; this.tokenAddress = data.tokenAddress || ''; this.icon = data.icon || ''; this.header = data.header || ''; this.openGraph = data.openGraph || ''; this.description = data.description || ''; this.links = data.links || []; } }