Token interface representing a cryptocurrency token

interface Token {
    attributes: {
        address: string;
        decimals: number;
        name: string;
        price_usd: null | string;
        symbol: string;
        total_supply: null | string;
    };
    id: string;
    type: string;
}

Hierarchy (View Summary)

Properties

Properties

attributes: {
    address: string;
    decimals: number;
    name: string;
    price_usd: null | string;
    symbol: string;
    total_supply: null | string;
}

Type declaration

  • address: string

    Token contract address

  • decimals: number

    Number of decimal places

  • name: string

    Token name

  • price_usd: null | string

    Current price in USD

  • symbol: string

    Token symbol

  • total_supply: null | string

    Total supply of the token

id: string

Unique identifier for the entity

type: string

Type of the entity