# DexFund

Supported protocol:

JSON-RPC 2.0 HTTP IPC Publish–subscribe Websocket
future version

# dexfund_getAccountFundInfo

Return exchange's account info for specified address and token id

  • Parameters:

    • Address: The address to query
    • TokenId: The token to query for this address, query all accounts if ignored
  • Returns:

    • Map[TokenTypeId]AccountFundInfo
  • Example:

# dexfund_getAccountFundInfoByStatus

Return exchange's account info for specified address, token id, and balance type

  • Parameters:

    • Address: The address to query
    • TokenId: The token to query for this address, query all accounts if ignored
    • byte: Balance type. Value accepted: 0 - all, 1 - available, or 2 - locked
  • Returns:

    • Map[TokenTypeId]string
  • Example:

# dexfund_getOrderByUserBlockHash

query order by tx hash which user singed for new order

  • Parameters:

    • blockHash: block hash user signed for new order
  • Returns:

    • Order:order detail
  • Example:

# dexfund_getTokenInfo

  • Parameters:

    • token
  • Returns:

    • TokenInfo: token info detail
  • Example:

# dexfund_getAllTradePairs

  • Parameters:

  • Returns:

    • Array<MarketInfo>: trade pair list
  • Example:

# dexfund_getMarketInfo

  • Parameters:

    • tradeToken:trade token of trade pair
    • quoteToken:quote token of trade pair
  • Returns:

    • MarketInfo:trade pair detail
  • Example:

# dexfund_getCurrentDividendPools

query dividend pool of current period

  • Parameters:

  • Returns:

    • map[types.TokenTypeId]DividendPoolInfo:all dividend pool by tokenId
  • Example:

# dexfund_isPledgeVip

check if pledged for vip already

  • Parameters:

    • address:
  • Returns:

    • bool:whether vip already
  • Example:

# dexfund_getInviterCode

query invite code created by specified address

  • Parameters:

    • address:inviter address
  • Returns:

    • uint32:invite code
  • Example:

# dexfund_getInviteeCode

query invite code bind by specified invitee

  • Parameters:

    • address:invitee address
  • Returns:

    • uint32:invite code
  • Example: