getCurrentAndHistoric method

Future<HeliumPagedResponse<List<HeliumOraclePrice>>> getCurrentAndHistoric()

Gets the current and historical Oracle Prices and at which block they took effect.

Implementation

Future<HeliumPagedResponse<List<HeliumOraclePrice>>>
    getCurrentAndHistoric() async {
  return _client._doPagedRequest(HeliumPagedRequest(
    path: '/v1/oracle/prices',
    extractResponse: (json) =>
        HeliumRequest.mapDataList(json, (p) => HeliumOraclePrice.fromJson(p)),
  ));
}