getWitnesses method

Future<HeliumResponse<List<HeliumHotspot>>> getWitnesses(
  1. String address
)

Retrieves the list of witnesses for a given hotspot over about the last 5 days of blocks.

address is the B58 address of the hotspot.

Implementation

Future<HeliumResponse<List<HeliumHotspot>>> getWitnesses(String address) {
  return _client._doRequest(HeliumRequest(
    path: '/v1/hotspots/$address/witnesses',
    extractResponse: (json) =>
        HeliumRequest.mapDataList(json, (h) => HeliumHotspot.fromJson(h)),
  ));
}