Skip to content

Data Service

Vladimir edited this page Jul 23, 2019 · 4 revisions

This is a special Waves service for an efficient and convenient way to get data from Waves blockchain.

Please notice that the full list of the Data service methods is available at Data Service Swagger and Test Data Service Swagger

Methods list:

Alias Data micro-service:

  • alias()
    /**
      Get address for alias
     */
    func alias(name: String) -> Observable<DataService.DTO.Alias>
  • aliases()
    /**
      Get a list of aliases for a given address
     */
    func list(address: String) -> Observable<[DataService.DTO.Alias]>

Assets Data micro-service:

asset()

    /**
      Get asset info by asset ID
      */
    func asset(id: String) -> Observable<DataService.DTO.Asset>
  • assets()
    /**
      Get a list of assets info from a list of IDs
     */
    func assets(ids: [String]) -> Observable<[DataService.DTO.Asset]>

Pairs Price micro-service:

  • pairs()
    /**
      Get pair info by amount and price assets
     */
    func pairs(query: DataService.Query.PairsPrice) -> Observable<[DataService.DTO.PairPrice]>

Transactions micro-service:

  • transactionsExchange()
    /**
      Get a list of exchange transactions by applying filters
     */
    func transactionsExchange(query: DataService.Query.ExchangeFilters) -> Observable<[DataService.DTO.ExchangeTransaction]>

Candles micro-service:

  • candles()
    /**
      Get candles by amount and price assets. Maximum amount of candles in response – 1440.
     */
    func candles(query: DataService.Query.CandleFilters) -> Observable<DataService.DTO.Chart>