getReceivedReceipts static method
Future<List<CommercioDocReceipt> >
getReceivedReceipts({
- required String address,
- required NetworkInfo networkInfo,
- Client? client,
Returns the list of all the CommercioDocReceipt that
have been received from the given address
.
Implementation
static Future<List<CommercioDocReceipt>> getReceivedReceipts({
required String address,
required NetworkInfo networkInfo,
http.Client? client,
}) async {
final url = Uri.parse('${networkInfo.lcdUrl}/receipts/$address/received');
final response = await Network.queryChain(url, client: client) as List;
return response.map((json) => CommercioDocReceipt.fromJson(json)).toList();
}