getHistoryWithHttpInfo method
Future<Response>
getHistoryWithHttpInfo(
- String environment,
- int index,
- String accountId,
- String mint,
- Commitment commitment,
Note: This method returns the HTTP Response
.
Parameters:
-
String environment (required):
-
int index (required):
-
String accountId (required):
-
String mint (required):
-
Commitment commitment (required):
Implementation
Future<Response> getHistoryWithHttpInfo(String environment, int index, String accountId, String mint, Commitment commitment,) async {
// ignore: prefer_const_declarations
final path = r'/api/account/history/{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,
);
}