getCurrentlyElectedHotspots method

Future<HeliumResponse<List<HeliumHotspot>>> getCurrentlyElectedHotspots()

Returns the list of hotspots that are currently elected to the concensus group.

Implementation

Future<HeliumResponse<List<HeliumHotspot>>>
    getCurrentlyElectedHotspots() async {
  return _client._doRequest(HeliumRequest(
    path: '/v1/hotspots/elected',
    extractResponse: (json) =>
        HeliumRequest.mapDataList(json, (h) => HeliumHotspot.fromJson(h)),
  ));
}