execute method

Future<FeeStatsResponse> execute ()

Requests fee stats from horizon. See: Fee stats

Implementation

Future<FeeStatsResponse> execute() async {
  TypeToken type = new TypeToken<FeeStatsResponse>();
  ResponseHandler<FeeStatsResponse> responseHandler =
      new ResponseHandler<FeeStatsResponse>(type);

  return await httpClient
      .get(this.buildUri(), headers: RequestBuilder.headers)
      .then((response) {
    return responseHandler.handleResponse(response);
  });
}