Nectar SDK & API
StartRelease
v1.6
v1.6
  • Introduction
  • Quick Start
  • Installation
  • Actions
    • getAllMarkets
    • getMarket
    • getMarketByTicker
    • getAllMarket24h
    • getMarket24h
    • getChains
    • getTokens
    • getAllOrders
    • getOpenOrders
    • getChart
    • getTrades
    • getBidAsk
    • transferToTradingWallet
    • transferToFundingWallet
    • buyLimit
    • sellLimit
    • buyMarketTotal
    • sellMarketAmount
    • cancelOrder
  • Types
    • BidAsk
    • Chain
    • Contract
    • Kline
    • Market
    • MarketQuote
    • NectarTransferResult
    • Order
    • Paginated
    • Token
    • Trade
    • Transaction
  • Enums
    • ChainType
    • ContractType
    • KLineInterval
    • OrderStatus
    • OrderType
    • TokenType
    • TransactionStatus
  • API Specifications
    • Header
    • Exchange Info
    • Markets 24hr Summary
    • Market History
    • Market Trades
    • Cancel Order
    • Opened User Orders
    • All User Orders
  • Release Notes
  • License and Copyright
Powered by GitBook
On this page
  1. Types

Token

The Token type represents a .

interface Token {
  aa_chain_id: string;
  aa_token_id: string;
  address: string;
  balance: string;
  chain_icon_url: string;
  chain_id: number;
  chain_network_name: string;
  chain_project_desc: string;
  chain_project_name: string;
  chain_rpcurl: string;
  chain_type: ChainType;
  decimal_places: number;
  desc: string;
  name: string;
  precision: number;
  ticker: string;
  ticker_display: string;
  token_icon_url: string;
  token_key: string;
  token_type: TokenType;
  used_balance: string;
}

Properties

  • aa_chain_id: string

    • A chain ID, which is a unique value created by Nectar.

  • aa_token_id: string

    • A token ID, which is a unique value created by Nectar.

  • address: string

    • A token contract address.

  • balance: string

    • The amount of the token in a trading wallet, which is available for transactions.

  • chain_icon_url: string

    • An icon image URL of the chain.

  • chain_id: number

    • A chain ID of the blockchain network.

  • chain_network_name: string

    • A displayable name of the chain.

  • chain_project_desc: string

    • A description of the chain.

  • chain_project_name: string

    • A name of the chain.

  • chain_rpcurl: string

    • A RPC URL.

  • chain_type: ChainType

    • A chain type.

  • decimal_places: number

    • The number of decimal places to display for the token's unit value.

  • desc: string

    • A description of the token.

  • name: string

    • A name of the token.

  • precision: string

    • The maximum number of decimal places supported for transactions involving the token.

  • ticker: string

    • A ticker of the token.

    • It is a combination of a symbol, an underscore, and a chain symbol.

    • E.g., USDT_ETHSEPOLIA

  • ticker_display: string

    • A symbol of the token.

  • token_icon_url: string

    • An icon image URL of the token.

  • token_key: string

    • A token key utilized within the DEX manager smart contract.

  • token_type: TokenType

    • A token type.

  • used_balance: string

    • The total quantity currently being used by the user in the transaction.

Last updated 1 year ago