getPoCReceipts method
Lists the challenge (receipts) in which the given hotspot is a challenger, challengee, or witness.
address
is the B58 address of the hotspot.
Implementation
Future<HeliumPagedResponse<List<HeliumTransactionPoCReceiptsV1>>>
getPoCReceipts(String address) async {
return _client._doPagedRequest(HeliumPagedRequest(
path: '/v1/hotspots/$address/challenges',
extractResponse: (json) => HeliumRequest.mapDataList(
json, (t) => HeliumTransactionPoCReceiptsV1.fromJson(t)),
));
}