getBalanceWithHttpInfo method

Future<Response> getBalanceWithHttpInfo(
  1. String environment,
  2. int index,
  3. String accountId,
  4. Commitment commitment,
)

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getBalanceWithHttpInfo(String environment, int index, String accountId, Commitment commitment,) async {
  // ignore: prefer_const_declarations
  final path = r'/api/account/balance/{environment}/{index}/{accountId}'
    .replaceAll('{environment}', environment)
    .replaceAll('{index}', index.toString())
    .replaceAll('{accountId}', accountId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'commitment', commitment));

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}