getWalletBalance method

Future<Map<String, dynamic>?> getWalletBalance({
  1. required String currency,
})

Receive the balance of fiat and cryptocurrency wallets

Implementation

Future<Map<String, dynamic>?> getWalletBalance(
    {required String currency}) async {
  var url = Uri.https(basePath, '/users/wallets/balance');

  var response = await client.post(url,
      headers: headers, body: jsonEncode({'currency': currency}));

  return jsonDecode(response.body);
}