UNPKG

dexscreener-sdk

Version:

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

23 lines (22 loc) 730 B
import { BaseModel } from './BaseModel.js'; /** * TokenBoost represents boost data for a token. */ export class TokenBoost extends BaseModel { /** * Creates an instance of TokenBoost. * @param data Partial data to initialize the token boost. */ constructor(data) { super(data); this.url = data.url || ''; this.chainId = data.chainId || ''; this.tokenAddress = data.tokenAddress || ''; this.amount = data.amount || 0; this.totalAmount = data.totalAmount || 0; this.icon = data.icon || ''; this.header = data.header || ''; this.description = data.description || ''; this.links = data.links || []; } }