getAllowances method

Future<List<FeeGrantAllowancesJson>> getAllowances(
  1. String walletGrantee
)

Implementation

Future<List<FeeGrantAllowancesJson>> getAllowances(
    String walletGrantee) async {
  String root =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_FEEGRANT_ALLOWANCES}/$walletGrantee";

  var response =
      await apiRequester.getAsync<FeeGrantAllowancesContainer>(root);
  if (response.successful!) {
    return FeeGrantAllowancesContainer.fromJson(response.result!).allowances;
  }

  throw Exception("");
}