/** * Dashboard API * Dashboard API documentation * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface TokenBalance */ export interface TokenBalance { /** * Network identifier where the token balance resides * @type {number} * @memberof TokenBalance */ networkId?: number; /** * Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON) * @type {string} * @memberof TokenBalance */ address: string; /** * Display name of the token * @type {string} * @memberof TokenBalance */ name: string; /** * Ticker symbol of the token * @type {string} * @memberof TokenBalance */ symbol: string; /** * Number of decimal places the token supports * @type {number} * @memberof TokenBalance */ decimals: number; /** * URL of the token logo image * @type {string} * @memberof TokenBalance */ logoURI: string; /** * Human-readable token balance adjusted for decimals * @type {number} * @memberof TokenBalance */ balance: number; /** * Raw token balance in the smallest unit, as a number. WARNING: loses precision * above 2^53 (~9.007e15). For 18-decimal tokens this is every realistic balance * over ~0.009 of one unit. Use rawBalanceString for any precision-sensitive use * case (exact-amount validation against on-chain state, swap fromAmount, transfer * amounts). Retained for backwards compatibility. * @type {number} * @memberof TokenBalance */ rawBalance: number; /** * Raw token balance in the smallest unit, as a decimal string. Precision-safe for * any token amount. Use BigInt(rawBalanceString) for math, or pass directly to * APIs that accept string-encoded amounts (LI.FI, viem, ethers, etc.). * @type {string} * @memberof TokenBalance */ rawBalanceString: string; /** * Current price per token in USD * @type {number} * @memberof TokenBalance */ price?: number; /** * Total market value of the balance in USD * @type {number} * @memberof TokenBalance */ marketValue?: number; /** * Size of the token's liquidity pool in USD * @type {number} * @memberof TokenBalance */ liquidityPoolSizeUsd?: number; /** * Total circulating supply of the token * @type {string} * @memberof TokenBalance */ totalSupply?: string; /** * Whether this is the chain's native token * @type {boolean} * @memberof TokenBalance */ isNative?: boolean; } export declare function TokenBalanceFromJSON(json: any): TokenBalance; export declare function TokenBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenBalance; export declare function TokenBalanceToJSON(value?: TokenBalance | null): any;