getTokenAccountsWithHttpInfo method

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

Note: This method returns the HTTP Response.

Parameters:

Implementation

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

  // 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,
  );
}