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