getWitnessed method
Retrieves the list of hotspots the given hotspot witnessed over about the last 5 days of blocks.
address
is the B58 address of the hotspot.
Implementation
Future<HeliumResponse<List<HeliumHotspot>>> getWitnessed(String address) {
return _client._doRequest(HeliumRequest(
path: '/v1/hotspots/$address/witnessed',
extractResponse: (json) =>
HeliumRequest.mapDataList(json, (h) => HeliumHotspot.fromJson(h)),
));
}